void (@NotNull CustomCodeStyleSettings customSettings) { Element tempElement = new Element("temp"); for (String tagName : customSettings.getKnownTagNames()) { Element unknown = myUnknownCustomElements.get(tagName); if (unknown != null) { tempElement.addContent(unknown.clone()); } } customSettings.readExternal(tempElement); synchronized (myCustomSettings) { myCustomSettings.put(customSettings.getClass().getName(), customSettings); customSettings.getKnownTagNames().forEach(myUnknownCustomElements::remove); } }