void (boolean expanded, FoldingModelImpl foldingModel, FoldRegion region, boolean notify) { if (expanded) { foldingModel.expandFoldRegion(region, notify); } else{ foldingModel.collapseFoldRegion(region, notify); } }