void (final @NotNull XmlAttributeValue value) { if (value.getTextRange().isEmpty()) { return; } final PsiFile file = value.getContainingFile(); if (!(file instanceof XmlFile)) { return; } PsiFile baseFile = PsiUtilCore.getTemplateLanguageFile(file); if (baseFile != file && !(baseFile instanceof XmlFile)) { return; } final XmlRefCountHolder refHolder = XmlRefCountHolder.getRefCountHolder((XmlFile)file); if (refHolder == null) return; final PsiElement parent = value.getParent(); if (!(parent instanceof XmlAttribute)) return; final XmlTag tag = (XmlTag)parent.getParent(); if (tag == null) return; checkValue(value, (XmlFile)file, refHolder, tag, holder); }