private @Nullable TabInfo findTabInfoFor(@NotNull Content content) {
    TabImpl tab = (TabImpl)getStateFor(content).getTab();
    for (TabInfo each : tabs.getTabs()) {
      TabImpl t = getTabFor(each);
      if (t != null && t.equals(tab)) return each;
    }
    return null;
  }
private @Nullable TabInfo findTabInfoFor(@NotNull Content content)