* 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
id: number,
    path?: Array<string | number>,
  ): InspectedElementPayload {
    const isCurrent = isMostRecentlyInspectedElementCurrent(id);
    if (isCurrent) {
      if (path != null) {
        mergeInspectedPaths(path);
        let secondaryCategory = null;
        if (path[0] === 'hooks') {
          secondaryCategory = 'hooks';
        }
         If this element has not been updated since it was last inspected,
         we can just return the subset of data in the newly-inspected path.
        return {
          id,
          type: 'hydrated-path',
          path,
          value: cleanForBridge(
            getInObject(