void () { configureByText("some text\n"); final FoldingModel foldingModel = myFixture.getEditor().getFoldingModel(); foldingModel.runBatchFoldingOperation(() -> foldingModel.addFoldRegion(0, 10, "...")); verifyAnchors(null, 0, Type.EXPANDED_TOP, 1, Type.EXPANDED_BOTTOM); }