void () { JFunction0 staticFunFromSameClass = Java8Class::staticFun; staticFunFromSameClass.foo(); MethodReferenceHelperClass.staticFun0(Java8Class::staticFun); h.memberFun0(Java8Class::staticFun); JFunction0 staticFunFromAnotherClass = Test::staticFun; staticFunFromAnotherClass.foo(); MethodReferenceHelperClass.staticFun0(Test::staticFun); h.memberFun0(Test::staticFun); }