Do we have a observer that can observe if there is a changes in the component definition?

Are you suggesting following approach:

        definitionss = model.definitions
        
        definitionss.each do |definition|
            entitiesToObserve = definition.entities
            entitiesToObserve.add_observer(MyEntitiesObserver.new)
            UI.messagebox("Def Name: #{definition.name}: enitities count: #{entitiesToObserve.count}")
        end

If yes, this is not working. OR if anything else you are suggesting, can you please provide code snippet. It will be more helpful.