import java.util.*; class Test { interface I> { T m(V p); } void foo(I> fip) { } void test() { foo((ArrayList p) -> p.get(0)); } }