void (@NotNull FoldingModelEx foldingModel) { if (!(foldingModel instanceof FoldingModelImpl) || (((FoldingModelImpl) foldingModel).getIsZombieRaised().compareAndSet(true, false))) { FoldRegion[] regions = foldingModel.getAllFoldRegions(); for (FoldRegion region : regions) { if (Boolean.TRUE.equals(region.getUserData(ZOMBIE_REGION_KEY))) { foldingModel.removeFoldRegion(region); } } } }