List<RangeToHighlight> (@NotNull Editor editor, @NotNull PsiFile file) { if (myPresentation == null) return List.of(); return ContainerUtil.map(myPresentation.rangesToHighlight(), range -> new RangeToHighlight(file, range.range(), range.highlightKey())); }