@Override
      public void layoutContainer(Container parent) {
        assert parent.getComponentCount() == 2;

        Component tabbedPane = parent.getComponent(0);
        Component toolbar = parent.getComponent(1);
        Dimension toolbarSize = toolbar.getPreferredSize();

        int width = tabbedPane.getPreferredSize().width * 2;
        int height = parent.getHeight();
        int gap = myGap.get();
        int x = (parent.getWidth() - width - gap - toolbarSize.width) / 2 - width / 4;
        int y = height > 0 ? height - JBUI.CurrentTheme.TabbedPane.TAB_HEIGHT.get() : 0;
        int toolbarY = (y + height - toolbarSize.height) / 2;

        tabbedPane.setBounds(x, y, width, height - y);
        toolbar.setBounds(x + width + gap, toolbarY - JBUI.scale(1), toolbarSize.width, height);
      }
@Override
      public void layoutContainer(Container parent)