void () { doTextTest("java", """ class Foo{ void foo() { Runnable i = new Runnable() { public void foo1(){} public void foo2(){} public void foo3(){} public void foo4(){} <caret> } } }""", """ class Foo{ void foo() { Runnable i = new Runnable() { public void foo1(){} public void foo2(){} public void foo3(){} public void foo4(){} \s <caret> } } }"""); }