* Don't show "context" for classes without either contextType or contextTypes
* For classes with contextTypes, change the label to "legacy context" instead

---
Originally reported by @gaearon via https://github.com/bvaughn/react-devtools-experimental/issues/368
if (element !== null && inspectedElementID !== null) {
        const rendererID = store.getRendererIDForElement(inspectedElementID);
        if (rendererID !== null) {
          bridge.send('highlightNativeElement', {
            displayName: element.displayName,
            hideAfterTimeout: true,
            id: inspectedElementID,
            openNativeElementsPanel: true,
            rendererID,
            scrollIntoView: true,
          });
        }
      }
    },
    [bridge, element, inspectedElementID, store],
  );
  const logElement = useCallback(
    () => {
      if (inspectedElementID !== null) {
        const rendererID = store.getRendererIDForElement(inspectedElementID);
        if (rendererID !== null) {
          bridge.send('logElementToConsole', {
            id: inspectedElementID,
            rendererID,
          });
        }
      }
    },
    [bridge, inspectedElementID, store],
  );