@Override
    public boolean isAvailable(@NotNull Project project, Editor editor, PsiFile psiFile) {
      XmlFile xmlFile = myXmlFile.getElement();
      return xmlFile != null && super.isAvailable(project, editor, xmlFile);
    }
@Override
    public boolean isAvailable(@NotNull Project project, Editor editor, PsiFile psiFile)