Help the javac compiler infer lambda types