CustomCodeStyleSettings (@NotNull String customSettingsClassName) { for (final CustomCodeStyleSettingsFactory factory : CodeStyleSettingsService.getInstance().getCustomCodeStyleSettingsFactories()) { CustomCodeStyleSettings customSettings = factory.createCustomSettings(myRootSettings); if (customSettings != null && customSettingsClassName.equals(customSettings.getClass().getName())) { return customSettings; } } return null; }