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