@Nullable
    public static XsltTemplate getTemplate(@NotNull PsiElement location, boolean isExpression) {
        final XmlTag templateTag = getTemplateTag(location, isExpression);
        return templateTag != null ? XsltElementFactory.getInstance().wrapElement(templateTag, XsltTemplate.class) : null;
    }
@Nullable
    public static XsltTemplate getTemplate(@NotNull PsiElement location, boolean isExpression)