void () { JFunction2<Java8Class, Integer> memberFunFromClass = Java8Class::memberFun; memberFunFromClass.foo(new Java8Class()); MethodReferenceHelperClass.staticFun2(Java8Class::memberFun); h.memberFun2(Java8Class::memberFun); }