void (@NotNull Project project, @NotNull CodeStyleSettings settings) { CodeStyleSettingsManager codeStyleSettingsManager = CodeStyleSettingsManager.getInstance(project); codeStyleSettingsManager.setMainProjectCodeStyle(settings); codeStyleSettingsManager.USE_PER_PROJECT_SETTINGS = true; }