class Test { void m() { class FooInsideMethodImpl extends Foo {} } }