@Override
    public boolean isAvailableImpl(@NotNull Project project, Editor editor, PsiFile file) {
        return myReference.isValid() && XsltCodeInsightUtil.getTemplateTag(myReference, true) != null;
    }
@Override
    public boolean isAvailableImpl(@NotNull Project project, Editor editor, PsiFile file)