maybeFind(query, context = this.rootEl ?? this._document) {
    const result = context.querySelector(query);

    // Because we control the report layout and templates, use the simpler
    // `typed-query-selector` types that don't require differentiating between
    // e.g. HTMLAnchorElement and SVGAElement. See https://github.com/GoogleChrome/lighthouse/issues/12011
    return /** @type {ParseSelector<T> | null} */ (result);
  }
Typed context.querySelector.

@template {string} T
@param {T} query
@param {ParentNode} context
@return {ParseSelector<T> | null}