class Foo2 { Foo2 getList() { return null; } { Foo2 f = new Foo2(); Object a = f.getList(); Object b = f.getList(); } }