private void setMiniModeInner(boolean minimalMode) {
    myMinimalMode = minimalMode;
    if (myMinimalMode) {
      setMinimumButtonSize(JBUI.emptySize());
      setLayoutStrategy(ToolbarLayoutStrategy.NOWRAP_STRATEGY);
      setBorder(JBUI.Borders.empty());
      setOpaque(false);
    }
    else {
      Insets i = myOrientation == SwingConstants.VERTICAL ? JBUI.CurrentTheme.Toolbar.verticalToolbarInsets()
                                                          : JBUI.CurrentTheme.Toolbar.horizontalToolbarInsets();
      if (i != null) {
        setBorder(JBUI.Borders.empty(i));
      }
      else {
        setBorder(JBUI.Borders.empty(2));
      }

      setMinimumButtonSize(myDecorateButtons ? JBUI.size(30, 20) : DEFAULT_MINIMUM_BUTTON_SIZE);
      setOpaque(true);
      setLayoutStrategy(ToolbarLayoutStrategy.AUTOLAYOUT_STRATEGY);
      setLayoutSecondaryActions(true);
    }
  }
private void setMiniModeInner(boolean minimalMode)