code: function inPatchRoot(path, plugin) {
    const { opts } = plugin;
    if (useFastRoot(path, opts)) {
      return true;
    }
  
    const roots = patchRoots(plugin)
    return !roots.length || path.findParent((parent) => {
      return roots.indexOf(parent) > -1;
    });
  }
docs: Determines if the JSX element is nested inside a patch's rendering function.