def METHOD_NAME(simplified_decls: T.Sequence):
    """Look at all of the lookups in a set of declarations to determine
    what depends on what"""
    intertable_dependencies = OrderedSet()
    for decl in simplified_decls:
        for fieldname, tablename in decl.lookups.items():
            intertable_dependencies.add(
                SObjDependency(decl.sf_object, tablename, fieldname)
            )
    return intertable_dependencies