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