void () { for (Iterator<CodeStyleScheme> schemeIterator = mySettingsToClone.keySet().iterator(); schemeIterator.hasNext();) { CodeStyleScheme scheme = schemeIterator.next(); if (!mySchemes.contains(scheme)) { schemeIterator.remove(); } } for (CodeStyleScheme scheme : mySchemes) { CodeStyleSettings current = scheme.getCodeStyleSettings(); CodeStyleSettings clonedSettings = getCloneSettings(scheme); clonedSettings.copyFrom(current); } }