fn strip_iterator(ty: &Type) -> Option<&Type>
Check if the type is impl Iterator<Item = T> and return T.
impl Iterator<Item = T>
T