private int getMinButtonsHeight() {
        return myButtonComponents.stream()
          .filter(component -> component.isVisible())
          .mapToInt(component -> component.getPreferredSize().height)
          .max().orElse(0);
      }
private int getMinButtonsHeight()