void (@NotNull CustomFoldRegion region, int flags) { if ((flags & ChangeFlags.WIDTH_CHANGED) == 0 || myDocument.isInBulkUpdate() || checkDirty()) return; int startOffset = region.getStartOffset(); if (myEditor.getFoldingModel().getCollapsedRegionAtOffset(startOffset) != region) return; int visualLine = myEditor.offsetToVisualLine(startOffset); myLineWidths.set(visualLine, region.getWidthInPixels()); invalidateWidth(true, visualLine); }