// "Replace with lambda" "true-preview"

import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Function;

class Test {
  {
    Map<Comparable, List<Collection<?>>> families = sortingMerge((Function<Collection<?>, Comparable>) family -> new Integer(0));
  }

  <C extends Comparable<C>, T> Map<C, List<T>> sortingMerge(
    Function<T, C> keyFunction) {

    return new HashMap<C, List<T>>();
  }
}
