void (@NotNull Element node) { Set<String> shortNames = new TreeSet<>(myNamingConventions.keySet()); shortNames.addAll(myUnloadedElements.keySet()); for (String shortName : shortNames) { NamingConvention<T> convention = myNamingConventions.get(shortName); if (convention == null) { Element element = myUnloadedElements.get(shortName); if (element != null) node.addContent(element.clone()); continue; } Element element = writeConvention(shortName, convention); if (element == null) continue; node.addContent(element); } }