void (@NotNull FoldRegion region) { assertIsDispatchThreadForEditor(); assertOurRegion(region); if (!myIsBatchFoldingProcessing) { LOG.error("Fold regions must be added or removed inside batchFoldProcessing() only."); } onFoldProcessingStart(); ((FoldRegionImpl)region).setExpanded(true, false); onFoldRegionStateChange(region); beforeFoldRegionRemoved(region); region.dispose(); }