public class Test { public static void main(String[] args) { Foo> foo = new Foo>(); foo.doSomething(null); } }