public static @NotNull JComponent wrapServicesAligned(@NotNull ActionToolbar toolbar) {
    JComponent toolbarComponent = toolbar.getComponent();
    int left = 0;
    int right = 0;
    Border border = toolbarComponent.getBorder();
    if (border != null) {
      Insets insets = border.getBorderInsets(toolbarComponent);
      left = insets.left;
      right = insets.right;
    }
    toolbarComponent.setBorder(JBUI.Borders.empty(0, left, 0, right));
    return new NonOpaquePanel(toolbarComponent) {
      @Override
      public Dimension getPreferredSize() {
        Dimension size = super.getPreferredSize();
        if (size.height > 0) {
          size.height = JBUI.scale(JBUI.unscale(JBRunnerTabs.getTabLabelPreferredHeight()) - 1); // without bottom border
        }
        return size;
      }
    };
  }
public static @NotNull JComponent wrapServicesAligned(@NotNull ActionToolbar toolbar)