protected void ensureTabs() {
    if (tabs == null) {
      myPanel = new JPanel();
      myPanel.setLayout(new BorderLayout());
      myTabbedPane = new TabbedPaneWrapper(this);
      myTabbedPane.addChangeListener(__ -> {
        if (myListener != null) {
          String title = myTabbedPane.getSelectedTitle();
          if (title != null) {
            myListener.tabChanged(this, title);
          }
        }
      });
      tabs = new ArrayList<>();
      myPanel.add(myTabbedPane.getComponent());
      initTabs(getSettings());
    }
    assert !tabs.isEmpty();
  }
protected void ensureTabs()