protected final void addTab(CodeStyleAbstractPanel tab) {
    tabs.add(tab);
    tab.setShouldUpdatePreview(true);
    addPanelToWatch(tab.getPanel());
    myTabbedPane.addTab(tab.getTabTitle(), tab.getPanel());
    if (myActiveTab == null) {
      myActiveTab = tab;
    }
  }
protected final void addTab(CodeStyleAbstractPanel tab)