boolean (PsiElement element, XmlTag tag, int offset) { final ASTNode node = tag.getNode(); if (node != null) { final ASTNode child = XmlChildRole.START_TAG_NAME_FINDER.findChild(node); if (child != null && child.getTextRange().contains(offset)) { return true; } } // final XmlAttribute att = PsiTreeUtil.getParentOfType(element, XmlAttribute.class); // if (att != null && "name".equals(att.getName()) && att.getValueElement() != null) { // return att.getValueElement().getTextRange().contains(offset); // } return false; }