void (@NotNull XmlAttributeValue element, @NotNull TokenConsumer consumer) { PsiReference[] references = element.getReferences(); for (PsiReference reference : references) { if (reference instanceof XmlEnumeratedValueReference) { if (reference.resolve() != null) { // this is probably valid enumeration value from XSD/RNG schema, such as SVG return; } } } final String valueTextTrimmed = element.getValue().trim(); // do not inspect colors like #00aaFF if (valueTextTrimmed.startsWith("#") && valueTextTrimmed.length() <= 9 && isHexString(valueTextTrimmed.substring(1))) { return; } super.tokenize(element, consumer); }