void (@NotNull PropertyChangeListener listener) { myMainEditor.removePropertyChangeListener(listener); mySecondEditor.removePropertyChangeListener(listener); final DoublingEventListenerDelegate delegate = myListenersGenerator.removeListenerAndGetDelegate(listener); if (delegate != null) { myMainEditor.removePropertyChangeListener(delegate); mySecondEditor.removePropertyChangeListener(delegate); } }