@Override
    protected void doPaint(Graphics2D g) {
      if (myIsSeparator) {
        super.doPaint(g);

        g.setColor(JBUI.CurrentTheme.Popup.separatorColor());
        RectanglePainter.FILL.paint(g, 0, getHeight() / 2, getWidth(), 1, null);
      }
      else if (myHaveLink) {
        UIUtil.useSafely(g.create(0, 0, myLinkOffset, g.getClipBounds().height), super::doPaint);

        g.translate(myLinkOffset, 0);
        myLink.setSize(myLink.getWidth(), getHeight());
        myLink.doPaint(g);
        g.translate(-myLinkOffset, 0);
      }
      else {
        super.doPaint(g);
      }
    }
@Override
    protected void doPaint(Graphics2D g)