void (Project project, @NotNull DefaultActionGroup group, @NotNull DataContext dataContext) { final CodeStyleSettingsManager manager = CodeStyleSettingsManager.getInstance(project); if (manager.getMainProjectCodeStyle() != null) { group.add(new AnAction(IdeBundle.messagePointer("action.QuickChangeCodeStyleSchemeAction.Anonymous.text.project"), () -> "", manager.USE_PER_PROJECT_SETTINGS ? AllIcons.Actions.Forward : ourNotCurrentAction) { @Override public void actionPerformed(@NotNull AnActionEvent e) { manager.updateSettingsTracker(); manager.USE_PER_PROJECT_SETTINGS = true; CodeStyleSettingsManager.getInstance(project).fireCodeStyleSettingsChanged(); } }); } CodeStyleScheme currentScheme = CodeStyleSchemes.getInstance().getCurrentScheme(); for (CodeStyleScheme scheme : CodeStyleSchemesImpl.getSchemeManager().getAllSchemes()) { addScheme(group, manager, currentScheme, scheme); } }