@Override
  protected void paintComponent(Graphics g) {
    if (myChars == null) {
      return;
    }

    final Color error = JBColor.namedColor("Label.errorForeground", JBColor.red);
    final Color foreground = JBColor.namedColor("Label.infoForeground", JBColor.border());
    g.setColor(myIsError ? error : foreground);

    ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    int y = Math.max(0, myBaseLine - myHeight - (myDiameter - myHeight) / 2);
    g.drawOval(0, y, myDiameter, myDiameter);

    if (UIUtil.isUnderDarcula()) {
      g.setColor(UIUtil.getLabelForeground());
    }
    g.drawChars(myChars, 0, myChars.length, (myDiameter - myIndexWidth) / 2, myBaseLine);
  }
@Override
  protected void paintComponent(Graphics g)