pub fn needs_import<T: Hash + PartialEq + Eq>( module: &str, import_type: ImportType, name: &String, imports: &Imports, cache: &mut FxHashSet<(String, T)>, obj: T, ) -> bool