void () { if (myDocument.isInBulkUpdate() || myEditor.getInlayModel().isInBatchMode() || myDirty) return; // 'getVisibleLineCount' should be called before accessing 'myLineWidths', as it can trigger soft wrap calculations if (myEditor.getVisibleLineCount() != myLineWidths.size()) { LOG.error("Inconsistent state", new Attachment("editor.txt", myEditor.dumpState())); reset(); assert myEditor.getVisibleLineCount() == myLineWidths.size(); } }