boolean (@NotNull XmlTag xmlTag, @NotNull Language language) { Collection<Language> allFileLanguages = xmlTag.getContainingFile().getViewProvider().getLanguages(); for (Language fileLanguage : allFileLanguages) { for (HtmlScriptInjectionBlocker blocker : INSTANCE.allForLanguage(fileLanguage)) { if (blocker.isLanguageInjectionDenied(xmlTag, language)) { // Language exists, but denied by EP return true; } } } // Language exists and not denied return false; }