public static boolean isAddUnambiguousImportsOnTheFlyEnabled(@NotNull PsiFile psiFile) {
    PsiFile templateFile = PsiUtilCore.getTemplateLanguageFile(psiFile);
    if (templateFile == null) return false;
    return ContainerUtil.exists(ReferenceImporter.EP_NAME.getExtensionList(),
                                importer -> importer.isAddUnambiguousImportsOnTheFlyEnabled(psiFile));
  }
public static boolean isAddUnambiguousImportsOnTheFlyEnabled(@NotNull PsiFile psiFile)