void (JComponent c) { myChildSettingsListener = new SettingsEditorListener<>() { @Override public void stateChanged(@NotNull SettingsEditor<Settings> editor) { fireEditorStateChanged(); if (mySyncController != null && !myIsDisposed) { mySyncController.handleStateChange(editor, CompositeSettingsEditor.this); } } }; for (SettingsEditor<Settings> editor : myEditors) { editor.addSettingsEditorListener(myChildSettingsListener); } }