void (final List<? extends PsiElement> extractedElements) { for (PsiElement each : extractedElements) { final TextRange textRange = each.getTextRange(); HighlightManager.getInstance(myProject).addRangeHighlight( myEditor, textRange.getStartOffset(), textRange.getEndOffset(), EditorColors.SEARCH_RESULT_ATTRIBUTES, false, true, null); } }