void () { String text = """ class Test { void test(int i) { if (i > 1) { <caret>i++; } } } """; configure(text); myFixture.performEditorAction("CollapseBlock"); myFixture.performEditorAction("CollapseBlock"); assertEquals(text.indexOf("}