void () { FoldRegion inner = addFoldRegion(10, 15, "inner"); FoldRegion outer = addCollapsedFoldRegion(10, 20, "outer"); myModel.runBatchFoldingOperation(() -> inner.setExpanded(false)); assertSame(outer, myModel.getCollapsedRegionAtOffset(10)); }