void (@Nullable Project project) { CodeStyleSettingsManager codeStyleSettingsManager; if (project == null || project.isDefault()) { codeStyleSettingsManager = ApplicationManager.getApplication().getServiceIfCreated(AppCodeStyleSettingsManager.class); } else { codeStyleSettingsManager = project.getServiceIfCreated(ProjectCodeStyleSettingsManager.class); } if (codeStyleSettingsManager != null) { codeStyleSettingsManager.dropTemporarySettings(); } }