See #17798
currentlyInspectedElementID = id;
      currentlyInspectedPaths = {};
    }
    const inspectedElement = inspectElementRaw(id);
    if (inspectedElement === null) {
      return {
        id,
        type: 'not-found',
      };
    }