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