void (final @NotNull MultiHostRegistrar registrar, final @NotNull PsiElement host) { if (Holder.SCRIPT_PATTERN.accepts(host)) { final List<String> registeredLanguages = JavaFxPsiUtil.parseInjectedLanguages((XmlFile)host.getContainingFile()); for (Language language : Language.getRegisteredLanguages()) { for (String registeredLanguage : registeredLanguages) { if (StringUtil.equalsIgnoreCase(language.getID(), registeredLanguage)) { registrar.startInjecting(language) .addPlace(null, null, (PsiLanguageInjectionHost) host, TextRange.from(0, host.getTextLength() - 1)) .doneInjecting(); break; } } } } }