Element (@NotNull EditorColorsScheme scheme) { Element root = new Element("scheme"); ((AbstractColorsScheme)scheme).writeExternal(root); fixPlatformSpecificValues(root); Element metaInfo = root.getChild("metaInfo"); if (metaInfo != null) { metaInfo.getChildren().forEach((child) -> { Attribute name = child.getAttribute("name"); if (!child.getName().equals("property") || name == null || !RainbowHighlighter.isRainbowKey(name.getValue())) { child.removeContent(); } }); } return root; }