@Override
      public void setTabActions(ActionGroup group) {
        super.setTabActions(group);
        if (actionPanel != null) {
          Container parent = actionPanel.getParent();
          parent.remove(actionPanel);
          parent.add(new Wrapper(actionPanel) {
            @Override
            public Dimension getPreferredSize() {
              return actionPanel.getPreferredSize();
            }
          }, BorderLayout.WEST);

          actionPanel.setBorder(JBUI.Borders.emptyLeft(6));
          actionPanel.setVisible(!showCloseActionOnHover());
        }
      }
@Override
      public void setTabActions(ActionGroup group)