fn ids_declared_by<T>(node: &T) -> AHashMap<TypedId, AHashSet<TypedId>>where
    T: AsModuleDecl,