static isRefOutOfScopeError(err) {
    return Boolean(
      err &&
        (err instanceof RefOutOfScopeError ||
          (typeof err === 'object' &&
            'code' in err &&
            err.code === RefOutOfScopeError.code))
    )
  }
@param {unknown} err
@returns {err is RefOutOfScopeError}