AbstractSchemeActions<CodeStyleScheme> () { return new CodeStyleSchemesActions(this) { @Override protected void onSchemeChanged(@Nullable CodeStyleScheme scheme) { if (!myIsReset) { ApplicationManager.getApplication().invokeLater(() -> onCombo()); } } @Override protected void renameScheme(@NotNull CodeStyleScheme scheme, @NotNull String newName) { CodeStyleSchemeImpl newScheme = new CodeStyleSchemeImpl(newName, false, scheme); myModel.addScheme(newScheme, false); myModel.removeScheme(scheme); myModel.selectScheme(newScheme, null); } }; }