void (@NotNull PropertyChangeListener listener) { myEditor.addPropertyChangeListener(listener); myPreview.addPropertyChangeListener(listener); final DoublingEventListenerDelegate delegate = myListenersGenerator.addListenerAndGetDelegate(listener); myEditor.addPropertyChangeListener(delegate); myPreview.addPropertyChangeListener(delegate); }