@Override
  public void paint(@NotNull Graphics2D g, int x, int y, int width, int height, Object object) {
    int min = getMinimalThickness();
    int gap = myGroupGap == null ? min : myGroupGap;
    int pos = x;
    if (myGroupSwap) {
      pos += width - min;
    }
    else {
      x += gap + min;
    }
    myPainter.paint(g, pos, y, min, height, object);
    super.paint(g, x, y, width - gap - min, height, object);
  }
@Override
  public void paint(@NotNull Graphics2D g, int x, int y, int width, int height, Object object)