// "Replace with lambda" "true-preview" class A { { bar((ThrowableComputable) () -> foo()); } private void bar(ThrowableComputable throwableComputable) {} private K foo() throws Exception { return null; } interface ThrowableComputable { T compute() throws T1; } }