class List {} class Test { T extract(List l) { return null; } void foo (List l) { extract(l); } }