fn get_methods<'a>(
    i: &'a Impl,
    for_deref: bool,
    used_links: &mut FxHashSet<String>,
    deref_mut: bool,
    tcx: TyCtxt<'_>
) -> Vec<Link<'a>>