void (final DefaultActionGroup group, final CodeStyleSettingsManager manager, final CodeStyleScheme currentScheme, final CodeStyleScheme scheme) { group.add(new DumbAwareAction(scheme.getName(), "", scheme == currentScheme && !manager.USE_PER_PROJECT_SETTINGS ? AllIcons.Actions.Forward : ourNotCurrentAction) { @Override public void actionPerformed(@NotNull AnActionEvent e) { CodeStyleSchemes.getInstance().setCurrentScheme(scheme); manager.updateSettingsTracker(); manager.USE_PER_PROJECT_SETTINGS = false; manager.PREFERRED_PROJECT_CODE_STYLE = scheme.getName(); manager.fireCodeStyleSettingsChanged(); } }); }