void () { initText(""); ((DocumentImpl)getEditor().getDocument()).setAcceptSlashR(true); runWriteCommand(() -> getEditor().getDocument().insertString(0, "a\rb\nc")); assertNotNull(addCustomFoldRegion(0, 0)); addCollapsedFoldRegion(3, 5, "..."); runWriteCommand(() -> getEditor().getDocument().deleteString(2, 3)); verifyFoldingState("[FoldRegion +(1:4), placeholder='...']"); }