public static void collectHighlightRanges(@NotNull PsiElement element,
                                            @NotNull TextRange rangeInElement,
                                            @NotNull Collection<? super TextRange> result) {
    TextRange range = safeCut(element.getTextRange(), rangeInElement);
    if (range.isEmpty()) return;
    result.add(InjectedLanguageManager.getInstance(element.getProject()).injectedToHost(element, range));
  }
public static void collectHighlightRanges(@NotNull PsiElement element,
                                            @NotNull TextRange rangeInElement,
                                            @NotNull Collection<? super TextRange> result)