void () { List<RangeHighlighter> newHighlighters = mySearchResults.getMatchesCount() < mySearchResults.getMatchesLimit() ? addNewHighlighters() : Collections.emptyList(); clearUnusedHighlighters(); myHighlighters.addAll(newHighlighters); updateInSelectionHighlighters(); }