import java.util.List; class Test { void f(List> list) { foo(list.get(0)); } private T foo(I id) { return null; } interface I { } }