How to ignore mutations for inline decorations?

Hi! I stumbled upon a problem with inline decorations. I want to be able to ignore mutation events occurring for inline decoration DOM elements, like it is done automatically for widget decorations, but I see no way of doing it. Is it intended to be that way and there are some problems with such approach or can it be added somehow?

What kind of decorations are these? What kind of mutations? If they are widgets, mutations inside of them should be ignored by default.

Decorations are inline. Mutations in general any, but right now I specifically interested in ignoring mutations when a classname is added or removed to an inline decoration element