void (@NotNull final PsiLanguageInjectionHost host, @NotNull final InjectedLanguagePlaces injectionPlacesRegistrar) { if (!(host instanceof XmlText xmlText)) return; if (!MavenPluginParamInfo.isSimpleText(xmlText)) return; if (host.getContainingFile().getLanguage().is(HTMLLanguage.INSTANCE)) return; MavenPluginParamInfo.ParamInfoList infoList = MavenPluginParamInfo.getParamInfoList(xmlText); for (MavenPluginParamInfo.ParamInfo info : infoList) { Language language = info.getLanguage(); if (language == null) { MavenParamLanguageProvider provider = info.getLanguageProvider(); if (provider != null) { language = provider.getLanguage(xmlText, infoList.getDomCfg()); } } if (language != null) { injectionPlacesRegistrar.addPlace(language, TextRange.from(0, host.getTextLength()), info.getLanguageInjectionPrefix(), info.getLanguageInjectionSuffix()); return; } } }