void (Graphics2D g, float x1, float x2, int height, boolean selected, boolean hovered, boolean noBorder) { if (noBorder) return; GraphicsConfig c = GraphicsUtil.setupRoundedBorderAntialiasing(g); RoundRectangle2D.Float shape = new RoundRectangle2D.Float(x1 + 1, 2, x2 - x1 - 2, height - 4, 6, 6); g.setColor(JBUI.CurrentTheme.ActionButton.hoverBackground()); if (hovered && !selected) { g.fill(shape); } else { g.draw(shape); } c.restore(); }