void (@NotNull Element element) { myMap.clear(); myRendererColors.clear(); for (Element infoElement : element.getChildren(INFO_TAG)) { SeverityBasedTextAttributes highlightInfo = new SeverityBasedTextAttributes(infoElement); String colorStr = infoElement.getAttributeValue(COLOR_ATTRIBUTE); @SuppressWarnings("UseJBColor") Color color = colorStr == null ? null : new Color(Integer.parseInt(colorStr, 16)); registerSeverity(highlightInfo, color); } myReadOrder = new JDOMExternalizableStringList(); myReadOrder.readExternal(element); List<HighlightSeverity> read = new ArrayList<>(myReadOrder.size()); List<HighlightSeverity> knownSeverities = getDefaultOrder(); for (String name : myReadOrder) { HighlightSeverity severity = getSeverity(name); if (severity != null && knownSeverities.contains(severity)) { read.add(severity); } } orderMap.set(ensureAllStandardIncluded(read, knownSeverities)); severitiesChanged(); }