void () { myModel.runBatchFoldingOperation(() -> { FoldRegion region = myModel.addFoldRegion(0, 10, "."); assertNotNull(region); region = myModel.addFoldRegion(1, 5, "."); assertNotNull(region); region = myModel.addFoldRegion(6, 11, "."); assertNull(region); }); }