void () { @Language("JAVA") String text = """ class Foo { void m1() { System.out.println(1); System.out.println(2); } void m2() { System.out.println(3); System.out.println(4); } }"""; configure(text); myFixture.performEditorAction(IdeActions.ACTION_COLLAPSE_ALL_REGIONS); assertTopLevelFoldRegionsState("[FoldRegion +(24:83), placeholder='{...}', FoldRegion +(97:156), placeholder='{...}']"); VirtualFile virtualFile = myFixture.getEditor().getVirtualFile(); myFixture.saveText(virtualFile, """ class Foo { void m1() { System.out.println(1); System.out.println(4); } }"""); virtualFile.refresh(false, false); myFixture.doHighlighting(); assertTopLevelFoldRegionsState("[FoldRegion +(24:83), placeholder='{...}']"); }