List<HighlightInfo> (@NotNull Project project, @NotNull PsiFile file) { assertMyFile(file.getProject(), file); assertMyFile(project, file); VirtualFile vFile = file.getViewProvider().getVirtualFile(); return Arrays.stream(getFileEditorManager().getAllEditors(vFile)) .map(fileEditor -> fileEditor.getUserData(FILE_LEVEL_HIGHLIGHTS)) .filter(Objects::nonNull) .flatMap(Collection::stream) .collect(Collectors.toList()); }