class X { void foo() { newMethod(); } private int newMethod() { int x = 0; int y = 42; } }