See #17798
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'),
    );
    return {
      id,
      type: 'full-data',
      value: inspectedElement,
    };
  }
  function inspectElementRaw(id: number): InspectedElement | null {
    const internalInstance = idToInternalInstanceMap.get(id);
    if (internalInstance == null) {
      return null;
    }