void (final DefaultActionGroup group, final EditorColorsScheme current, final EditorColorsScheme scheme, final boolean addScheme) { group.add(new DumbAwareAction(scheme.getDisplayName(), "", scheme == current ? AllIcons.Actions.Forward : ourNotCurrentAction) { @Override public void actionPerformed(@NotNull AnActionEvent e) { if (addScheme) { EditorColorsManager.getInstance().addColorScheme(scheme); } EditorColorsScheme oldScheme = EditorColorsManager.getInstance().getGlobalScheme(); EditorColorsManager.getInstance().setGlobalScheme(scheme); changeLafIfNecessary(oldScheme, scheme); } }); }