class Executor { void bar(Executor e) { Runnable r = () -> foo(e); } private T foo(final Executor e) { return null; } }