void (String... optionNames) { List<String> options = Arrays.asList(optionNames); for (SettingsType settingsType : SettingsType.values()) { Map<SettingsGroup, List<CodeStyleSettingPresentation>> standardGroups = standardSettings.get(settingsType); for (Map.Entry<SettingsGroup, List<CodeStyleSettingPresentation>> entry : standardGroups.entrySet()) { for (CodeStyleSettingPresentation setting: entry.getValue()) { if (options.contains(setting.getFieldName())) { addSetting(settingsType, entry.getKey(), setting, null, null); } } } } }