private @Nullable TabDescriptor findTab(@NotNull JComponent c) {
    for (TabDescriptor tab : myTabs) {
      if (tab.getComponent() == c) {
        return tab;
      }
    }
    return null;
  }
private @Nullable TabDescriptor findTab(@NotNull JComponent c)