* 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
currentlyInspectedElementID = id;
      currentlyInspectedPaths = {};
    }
    const inspectedElement = inspectElementRaw(id);
    if (inspectedElement === null) {
      return {
        id,
        type: 'not-found',
      };
    }
    if (path != null) {
      mergeInspectedPaths(path);
    }
    
    
    
    updateSelectedElement(id);
    inspectedElement.context = cleanForBridge(
      inspectedElement.context,
      createIsPathWhitelisted('context'),
    );
    inspectedElement.props = cleanForBridge(
      inspectedElement.props,
      createIsPathWhitelisted('props'),
    );
    inspectedElement.state = cleanForBridge(
      inspectedElement.state,
      createIsPathWhitelisted('state'),
    );