public class Foo { void m(Object o) { Foo foo = new Foo() { }; } }