void (@NotNull CodeStyleSettings rootSettings, @NotNull CustomCodeStyleSettingsFactory factory) { CustomCodeStyleSettings customSettings = factory.createCustomSettings(rootSettings); if (customSettings != null) { synchronized (myCustomSettings) { myCustomSettings.put(customSettings.getClass().getName(), customSettings); } } }