void (@NonNls @NotNull String fieldName, @Nls @NotNull String newGroup) { for (SettingsType settingsType : SettingsType.values()) { Map<SettingsGroup, List<CodeStyleSettingPresentation>> standardGroups = mySettings.get(settingsType); if (standardGroups == null) { standardGroups = new LinkedHashMap<>(); mySettings.put(settingsType, standardGroups); } for (Map.Entry<SettingsGroup, List<CodeStyleSettingPresentation>> entry : standardGroups.entrySet()) { CodeStyleSettingPresentation moveSetting = null; for (CodeStyleSettingPresentation setting: entry.getValue()) { if (setting.getFieldName().equals(fieldName)) { moveSetting = setting; break; } } if (moveSetting != null) { entry.getValue().remove(moveSetting); addSetting(new SettingsGroup(newGroup), moveSetting, null, null); } } } }