void paint(ScrollBarPainter p, Graphics2D g, JComponent c, boolean small) {
    int x = p.bounds.x;
    int y = p.bounds.y;
    int width = p.bounds.width;
    int height = p.bounds.height;

    Alignment alignment = Alignment.get(c);
    if (alignment == Alignment.LEFT || alignment == Alignment.RIGHT) {
      int offset = getTrackOffset(width - getMinimalThickness());
      if (offset > 0) {
        width -= offset;
        if (alignment == Alignment.RIGHT) x += offset;
      }
    }
    else {
      int offset = getTrackOffset(height - getMinimalThickness());
      if (offset > 0) {
        height -= offset;
        if (alignment == Alignment.BOTTOM) y += offset;
      }
    }

    Insets insets = getInsets(small);
    x += insets.left;
    y += insets.top;
    width -= (insets.left + insets.right);
    height -= (insets.top + insets.bottom);

    p.paint(g, x, y, width, height, p.animator.value);
  }
void paint(ScrollBarPainter p, Graphics2D g, JComponent c, boolean small)