textComponent.getUI().damageRange(textComponent, p0, p1);
  public Object addHighlight(int p0, int p1, Highlighter.HighlightPainter painter)    throws BadLocationException  {    checkPositions(p0, p1);    HighlightEntry entry = new HighlightEntry(p0, p1, painter);    highlights.add(entry);    return entry;  }