See #17798
current[key] = {};
      }
      current = current[key];
    });
  }
  function createIsPathWhitelisted(key: string) {
    
    
    return function isPathWhitelisted(path: Array<string | number>): boolean {
      let current = currentlyInspectedPaths[key];
      if (!current) {
        return false;
      }
      for (let i = 0; i < path.length; i++) {
        current = current[path[i]];
        if (!current) {
          return false;
        }
      }
      return true;
    };
  }
  
  function getInstanceAndStyle(id: number): InstanceAndStyle {
    let instance = null;
    let style = null;
    const internalInstance = idToInternalInstanceMap.get(id);
    if (internalInstance != null) {
      instance = internalInstance._instance || null;
      const element = internalInstance._currentElement;