pub fn resolve_multiple<'a, D, I>(
    selections: I,
    snapshot: &MultiBufferSnapshot
) -> impl 'a + Iterator<Item = Selection<D>>where
    D: TextDimension + Ord + Sub<D, Output = D> + Debug,
    I: 'a + IntoIterator<Item = &'a Selection<Anchor>>,