fn classes_for( grid: &Grid<StateSet>, kind: SetKind, ) -> impl Iterator<Item = (&'_ [OwnedEventId], &'_ Origins)> + Clone