void (@NotNull Project project) { synchronized (myStateLock) { if (!myIsLoaded) { LegacyCodeStyleSettingsManager legacySettingsManager = project.getService(LegacyCodeStyleSettingsManager.class); if (legacySettingsManager != null && legacySettingsManager.getState() != null) { loadState(legacySettingsManager.getState()); if (!project.isDefault() && !ApplicationManager.getApplication().isUnitTestMode() && !ApplicationManager.getApplication().isHeadlessEnvironment()) { getMainProjectCodeStyle().getModificationTracker().incModificationCount(); project.scheduleSave(); } LOG.info("Imported old project code style settings."); } else { initDefaults(); LOG.info("Initialized from default code style settings."); } } } }