code: static void removeHighlights(
          JTextComponent textComponent, Iterable<?> highlights)
      {
          Highlighter highlighter = textComponent.getHighlighter();
          for (Object highlight : highlights)
          {
              highlighter.removeHighlight(highlight);
          }
      }
docs: Remove the given highlights from the given text component
  
  @param textComponent The text component
  @param highlights The highlights