if (highlighter != null) highlighter.paint(g);
  protected void paintSafely(Graphics g)  {    Caret caret = textComponent.getCaret();    Highlighter highlighter = textComponent.getHighlighter();        if (textComponent.isOpaque())      paintBackground(g);        rootView.paint(g, getVisibleEditorRect());    if (highlighter != null)      highlighter.paint(g);    if (caret != null)      caret.paint(g);  }