AbstractSchemeActions<EditorColorsScheme> () { return new ColorSchemeActions(this) { @Override protected @NotNull ColorAndFontOptions getOptions() { return myOptions; } @Override protected void onSchemeChanged(@Nullable EditorColorsScheme scheme) { if (scheme != null) { myOptions.selectScheme(scheme.getName()); if (areSchemesLoaded()) { myDispatcher.getMulticaster().schemeChanged(SchemesPanel.this); } } } @Override protected void renameScheme(@NotNull EditorColorsScheme scheme, @NotNull String newName) { if (myOptions.saveSchemeAs(scheme, newName)) { myOptions.removeScheme(scheme); myOptions.selectScheme(newName); } } }; }