private void updateMinimumButtonSize() {
    if (myMinimumButtonSizeSupplier == null) {
      return; // called from the superclass constructor through updateUI()
    }
    JBDimension minimumButtonSize = JBDimension.create(myMinimumButtonSizeSupplier.get(), true);
    for (int i = getComponentCount() - 1; i >= 0; i--) {
      final Component component = getComponent(i);
      if (component instanceof ActionButton button) {
        button.setMinimumButtonSize(myMinimumButtonSizeSupplier);
      }
      else if (component instanceof JLabel && LOADING_LABEL.equals(component.getName())) {
        Dimension dimension = new Dimension();
        dimension.width = Math.max(minimumButtonSize.width, ((JLabel)component).getIcon().getIconWidth());
        dimension.height = Math.max(minimumButtonSize.height, ((JLabel)component).getIcon().getIconHeight());
        JBInsets.addTo(dimension, ((JLabel)component).getInsets());
        component.setPreferredSize(dimension);
      }
    }
  }
private void updateMinimumButtonSize()