public static PsiFile getTemplateLanguageFile(@Nullable PsiElement element) {
    if (element == null) return null;
    PsiFile containingFile = element.getContainingFile();
    if (containingFile == null) return null;

    return TemplateLanguageUtil.getBaseFile(containingFile);
  }
public static PsiFile getTemplateLanguageFile(@Nullable PsiElement element)