docs: int getTabIndex(Component component) {
  
          List<Component> tabs = Lists.newArrayList(m_tabs.iterator());
          while (component != null) {
              int pos = tabs.indexOf(component);
              if (pos >= 0) {
                  return pos;
              }
              component = component.getParent();
          }
          return -1;
      }