def METHOD_NAME(self, env: BuildEnvironment, fromdocname: str, builder: Builder,
                     target: str, node: pending_xref, contnode: Element,
                     ) -> list[tuple[str, Element]]:
    refnode = self.resolve_xref(env, fromdocname, builder, 'ref', target, node, contnode)
    if refnode is None:
        return []
    else:
        return [('ref', refnode)]