boolean (Project project, Editor editor, @NotNull List<? extends PsiJavaCodeReferenceElement> expressionsToDequalify) { boolean found = false; for (PsiJavaCodeReferenceElement expression : expressionsToDequalify) { if (!expression.isValid()) continue; found = true; HighlightManager.getInstance(project).addRangeHighlight( editor, expression.getTextRange().getStartOffset(), expression.getTextRange().getEndOffset(), EditorColors.SEARCH_RESULT_ATTRIBUTES, true, null); } return found; }