docs: public void setAsContextMenuOf(AbstractClientConnector component) {
  
          if (component instanceof Table) {
              setAsTableContextMenu((Table)component);
          } else if (component instanceof Tree) {
              setAsTreeContextMenu((Tree)component);
          } else {
              super.extend(component);
          }
      }