def METHOD_NAME(self, env, fromdocname, builder, typ, target, node,
                 contnode):
    match = [(docname, anchor)
             for name, sig, typ, docname, anchor, prio
             in self.get_objects() if sig == target]
    if len(match) > 0:
        todocname = match[0][0]
        targ = match[0][1]
        return make_refnode(builder, fromdocname, todocname, targ,
                            contnode, targ)
    else:
        print('Awww, found nothing')
        return None