void (@NotNull Element roots, @NotNull PersistentOrderRootType type) { String sdkRootName = type.getSdkRootName(); if (sdkRootName == null) { return; } Element e = new Element(sdkRootName); roots.addContent(e); Element composite = new Element("root"); composite.setAttribute("type", "composite"); e.addContent(composite); VirtualFilePointerContainer container = myRoots.get(type); if (container != null) { container.writeExternal(composite, "root", false); } for (Element root : composite.getChildren()) { root.setAttribute("type", "simple"); } }