void () { CodeStyleSettingsManager projectSettingsManager = CodeStyleSettingsManager.getInstance(myProject); projectSettingsManager.USE_PER_PROJECT_SETTINGS = isProjectScheme(mySelectedScheme); projectSettingsManager.PREFERRED_PROJECT_CODE_STYLE = mySelectedScheme instanceof ProjectScheme ? null : mySelectedScheme.getName(); CodeStyleSettings projectSettings = myProjectScheme.getCodeStyleSettings(); projectSettings.getModificationTracker().incModificationCount(); projectSettingsManager.setMainProjectCodeStyle(projectSettings); }