component.removePropertiesListener(myPropertiesListener); for (Iterator i = component.getProperties(); i.hasNext(); ) { Property p = (Property) i.next(); p.removePropertyListener(myPropertyListener); }
  private void removeListeners(ModifiableConfigurableComponent component) {    component.removeModificationListener(myModificationListener);    component.removePropertiesListener(myPropertiesListener);    for (Iterator i = component.getProperties(); i.hasNext(); ) {      Property p = (Property) i.next();      p.removePropertyListener(myPropertyListener);    }  }