boolean (@NotNull PsiLanguageInjectionHost host) { if (!host.isPhysical()) return false; Ref<Boolean> result = Ref.create(false); enumerate(host, (injectedPsi, places) -> result.set(true)); return result.get().booleanValue(); }