public void toggleContentPopup(JBTabs tabs) {
    if (myOriginal != null) {
      myOriginal.toggleContentPopup(tabs);
      return;
    }

    List<Content> contents = getPopupContents();
    final SelectContentStep step = new SelectContentStep(contents);
    final Content selectedContent = myManager.getSelectedContent();
    if (selectedContent != null) {
      step.setDefaultOptionIndex(myManager.getIndexOfContent(selectedContent));
    }

    final ListPopup popup = JBPopupFactory.getInstance().createListPopup(step);
    popup.showUnderneathOf(tabs.getTabLabel(tabs.getSelectedInfo()));

    if (selectedContent instanceof TabbedContent) {
      new Alarm(Alarm.ThreadToUse.SWING_THREAD, popup).addRequest(() -> popup.handleSelect(false), 50);
    }
  }
public void toggleContentPopup(JBTabs tabs)