void () { configureFromFileText(getTestName(false) + ".java", """ class C { <caret> void m1() { System.out.println(); } void m2() { System.out.println(); } }"""); EditorTestUtil.buildInitialFoldingsInBackground(getEditor()); executeAction(IdeActions.ACTION_COLLAPSE_ALL_REGIONS); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_DOWN_WITH_SELECTION); performAction(); checkResultByText(""" class C { // void m1() { // System.out.println(); // } void m2() { System.out.println(); } }"""); }