When I edit the diagram via UI, onModelChange event happens. When I edit model of diagram via code (model.set(node, deletable, false)), onModelChange event occurs.
I want to have a way to ignore second type of changes. Because I do them during handling the first type of changes. So I am getting recursion.