void () { configureFromFileText("a.java", "class Foo{{ new MethodClosure(new Object() {void fake()<caret>}, 2) }}"); type('{'); checkResultByText("class Foo{{ new MethodClosure(new Object() {void fake(){<caret>}}, 2) }}"); type('}'); checkResultByText("class Foo{{ new MethodClosure(new Object() {void fake(){}<caret>}, 2) }}"); }