PsiElement () { // final XmlTag tag = PsiTreeUtil.getParentOfType(value, XmlTag.class); // final XmlTag include = getAncestorTag(tag, "include", ProjectLoader.RNG_NAMESPACE); // final XmlTag grammar = getAncestorTag(tag, "grammar", ProjectLoader.RNG_NAMESPACE); // // if (include != null && (grammar == null || PsiTreeUtil.isAncestor(grammar, include, true))) { // final ResolveResult[] e = new DefinitionReference(getElement(), false).multiResolve(false); // } return myElement.getParent().getParent(); }