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