private void removeHighlights ( Collection < ? extends Point > points ) { Set < Object > highlightsToRemove = new LinkedHashSet < Object > ( ) ; for ( Point point : points ) { Object oldHighlight = highlights . remove ( point ) ; if ( oldHighlight != null ) { highlightsToRemove . add ( oldHighlight ) ; } } JTextComponents . removeHighlights ( textComponent , highlightsToRemove ) ; }
Remove the highlights that are associated with the given points