@Override
  public Dimension minimumLayoutSize(Container parent) {
    return layoutSize(parent, myVertical, component -> component.getMinimumSize());
  }
@Override
  public Dimension minimumLayoutSize(Container parent)