How about replacing this with `case (DotSomething, IterableType) => ...`?