public static boolean isNotInjectedOrCustomHtmlFile(@NotNull PsiFile file) {
    if (InjectedLanguageManager.getInstance(file.getProject()).getInjectionHost(file) == null) return true;
    var language = file.getLanguage();
    return language instanceof HTMLLanguage
           && language != HTMLLanguage.INSTANCE;
  }
public static boolean isNotInjectedOrCustomHtmlFile(@NotNull PsiFile file)