Watch a component

Is It possible to watch a component if it is affected to modifications made by third parties?

Imagine that we have a Gateway component with two SequenceFlows to other components (for example to a Task and to a ImmediateEventFlow component) .

If I remove for example the Task component, the Gateway will be affected (one SequenceFlow disappears) .

The question is… how to watch or detect if this Gateway has been modified ?

Any suggestion?

This code show the source element of removed connection:

eventBus.on('connection.remove', function (event) { console.log(event.element.source) ; });