def METHOD_NAME(self, env, fromdocname, builder,
                 typ, target, node, contnode):
    docname, labelid = self.data['objects'].get((typ, target), ('', ''))
    if not docname:
        return None
    else:
        return make_refnode(builder, fromdocname, docname,
                            labelid, contnode)