See #17798
function getInstanceAndStyle(id: number): InstanceAndStyle {
    let instance = null;
    let style = null;
    let fiber = findCurrentFiberUsingSlowPathById(id);
    if (fiber !== null) {
      instance = fiber.stateNode;
      if (fiber.memoizedProps !== null) {
        style = fiber.memoizedProps.style;
      }
    }
    return {instance, style};
  }
  function inspectElementRaw(id: number): InspectedElement | null {
    let fiber = findCurrentFiberUsingSlowPathById(id);
    if (fiber == null) {
      return null;
    }
    const {
      _debugOwner,
      _debugSource,
      dependencies,
      stateNode,
      memoizedProps,
      memoizedState,
      tag,
      type,
    } = fiber;
    const elementType = getElementTypeForFiber(fiber);
    const usesHooks =
      (tag === FunctionComponent ||