void (PsiElement element) { myElement = (XmlElement)element; myDescriptorFile = (XmlFile)element.getContainingFile(); if (myElement instanceof XmlFile) { myElement = ((XmlFile)myElement).getDocument(); } }