void (Project project, @Nullable Editor editor, PsiElement[] elements) { if (editor == null) return; ArrayList<RangeHighlighter> highlighters = new ArrayList<>(); HighlightManager highlightManager = HighlightManager.getInstance(project); if (elements.length > 0) { highlightManager.addOccurrenceHighlights(editor, elements, EditorColors.SEARCH_RESULT_ATTRIBUTES, false, highlighters); } }