void (@NotNull Inlay<?> inlay, int changeFlags) { if (myDocument.isInBulkUpdate() || myEditor.getInlayModel().isInBatchMode() || (changeFlags & InlayModel.ChangeFlags.WIDTH_CHANGED) == 0) { return; } if (inlay.getPlacement() == Inlay.Placement.INLINE || inlay.getPlacement() == Inlay.Placement.AFTER_LINE_END) { onLineInlayUpdate(inlay); } else if (myWidestBlockInlayValid && (inlay == myWidestBlockInlay || inlay.getWidthInPixels() > getCachedWidestBlockInlayWidth() && !EditorUtil.isInlayFolded(inlay))) { if (inlay == myWidestBlockInlay) { invalidateCachedBlockInlayWidth(); } else { myWidestBlockInlay = inlay; } } }