import java.util.function.Function; class Test { Function f = (str) -> () -> foo(""); void foo(String s) {} }