private static boolean isPythonInTemplateLanguages(PsiFile psiFile) {
    return StreamEx.of(psiFile.getViewProvider().getLanguages())
      .findFirst(x -> x.isKindOf(PythonLanguage.getInstance()))
      .isPresent();
  }
private static boolean isPythonInTemplateLanguages(PsiFile psiFile)