docs: public int getTabIndex(Element child) {
  
          int index = 0;
          for (Widget tab : m_tabPanel) {
              if (tab.getElement().isOrHasChild(child)) {
                  return index;
              }
              index++;
          }
          return -1;
      }