private boolean matchContextType() {
   final PsiFile file = myContextElement.getContainingFile();
   return file != null
       && XsltSupport.getXsltLanguageLevel(file).getXPathVersion()
           == getContextType().getVersion();
 }
 @Nullable
 public XmlElement getContextElement() {
   return myContextElement.getElement();
 }
 @Nullable
 private static XmlTag getTagByInjectedFile(final PsiFile file) {
   final SmartPsiElementPointer pointer = file.getUserData(FileContextUtil.INJECTED_IN_ELEMENT);
   final PsiElement element = pointer == null ? null : pointer.getElement();
   return element instanceof XmlText ? ((XmlText) element).getParentTag() : null;
 }