void (@NotNull Graphics g, @NotNull JComponent c, Rectangle thumbBounds) { if (isMacOverlayScrollbar()) { if (!isMirrored()) { super.paintThumb(g, c, thumbBounds); } else { Graphics2D g2d = (Graphics2D)g; AffineTransform old = g2d.getTransform(); AffineTransform tx = AffineTransform.getScaleInstance(-1, 1); tx.translate(-c.getWidth(), 0); g2d.transform(tx); super.paintThumb(g, c, thumbBounds); g2d.setTransform(old); } } else { super.paintThumb(g, c, thumbBounds); } }