T () { PsiElement psi = myAnchor.retrieve(); if (psi == null) return null; if (psi instanceof XmlTag) { return (T)DomManager.getDomManager(myProject).getDomElement((XmlTag)psi); } if (psi instanceof XmlAttribute) { return (T)DomManager.getDomManager(myProject).getDomElement((XmlAttribute)psi); } return null; }