@Override
  public Dimension minimumLayoutSize(Container container) {
    Component component = getComponent(container);
    return getSize(container, component != null ? component.getMinimumSize() : new Dimension());
  }
@Override
  public Dimension minimumLayoutSize(Container container)