void (@NotNull MultiHostRegistrar registrar, @NotNull JsonStringLiteral host, @NotNull InjectedLanguageData language) { List<Pair<TextRange, String>> fragments = host.getTextFragments(); if (fragments.isEmpty()) return; registrar.startInjecting(language.language); for (Pair<TextRange, String> fragment : fragments) { registrar.addPlace(language.prefix, language.postfix, (PsiLanguageInjectionHost)host, fragment.first); } registrar.doneInjecting(); }