// "Replace lambda with method reference" "true-preview" class Bar { interface Foo { int sum(Byte b1, Byte b2); } public void test(Object obj) { Foo foo = Integer::sum; } }