So I am trying to write an internal DSL and having a hard time to get generics work the way I want. I know I can write one method call like


collectingAndThen(toSet(), Set::size);

but I want...