void (@NotNull XmlTag tag) { super.visitXmlTag(tag); if (tag.getSubTags().length != 0) return; final XmlElementDescriptor descriptor = tag.getDescriptor(); if (descriptor instanceof JavaFxPropertyTagDescriptor) { final PsiClass psiClass = ((JavaFxPropertyTagDescriptor)descriptor).getPsiClass(); if (psiClass != null && JavaFxCommonNames.JAVAFX_SCENE_COLOR.equals(psiClass.getQualifiedName())) { final XmlTagValue valueElement = tag.getValue(); final XmlText[] textElements = valueElement.getTextElements(); final PsiElement location = textElements.length == 1 ? textElements[0] : tag; validateColorComponent(psiClass, tag.getName(), valueElement.getTrimmedText(), location); } } }