Groups non-null elements by the given key function.
key
Map<K, List<T>> groupNonNullBy<K>(K Function(T element) key) => validate().groupBy(key);