getGlyphPainter().paint(this, g, a, getStartOffset(), getEndOffset());
int p0 = getStartOffset(); int p1 = getEndOffset();  Container c = getContainer();  if (c instanceof JTextComponent) { JTextComponent tc = (JTextComponent) c; Highlighter h = tc.getHighlighter(); if (h instanceof LayeredHighlighter) { LayeredHighlighter lh = (LayeredHighlighter) h; lh.paintLayeredHighlights(g, p0, p1, a, tc, this); } }  getGlyphPainter().paint(this, g, a, p0, p1);
  public void paint(Graphics g, Shape a)  {    Element el = getElement();    checkPainter();    getGlyphPainter().paint(this, g, a, getStartOffset(), getEndOffset());  }