public void add(@NotNull SModelDescriptor sm) {
   checkDisposed();
   // assert !myModelDescriptors.contains(sm) : "EventsCollector was already configured to listen
   // for changes in this model descriptor: " + sm.getSModelReference().toString();
   myModelDescriptors.add(sm);
   sm.addModelListener(myListener);
 }
  public void remove(@NotNull SModelDescriptor sm) {
    checkDisposed();

    myModelDescriptors.remove(sm);
    sm.removeModelListener(myListener);
  }