@Override
  public void beforeDocumentChange(@NotNull DocumentEvent event) {
    myAfterLineEndInlayUpdated = false;
    if (myBulkUpdateInProgress) {
      return;
    }
    myUpdateInProgress = true;
    if (!isSoftWrappingEnabled()) {
      myDirty = true;
      return;
    }
    applianceManager.beforeDocumentChange(event);
  }
@Override
  public void beforeDocumentChange(@NotNull DocumentEvent event)