void (@NotNull MultiHostRegistrar registrar, @NotNull PsiElement context) { if (!(context instanceof PsiSnippetDocTagImpl snippet)) return; final Language language = getLanguage(snippet); final List<TextRange> ranges = snippet.getContentRanges(); if (ranges.isEmpty()) return; registrar.startInjecting(language); for (TextRange range : ranges) { registrar.addPlace(null, null, snippet, range); } registrar.doneInjecting(); }