*iterateReferencesTraceMap(tracker, map) {
    const esmTraceMap = this.createCompositionApiTraceMap({
      ...map,
      [ReferenceTracker.ESM]: true
    })

    for (const ref of tracker.iterateEsmReferences(esmTraceMap)) {
      yield ref
    }

    for (const ref of tracker.iterateGlobalReferences(map)) {
      yield ref
    }
  }
Iterates all references in the given trace map.
Take the third argument option to detect auto-imported references.

@param {import('@eslint-community/eslint-utils').ReferenceTracker} tracker
@param {import('@eslint-community/eslint-utils').TYPES.TraceMap} map
@returns {ReturnType<import('@eslint-community/eslint-utils').ReferenceTracker['iterateEsmReferences']>}