@Override
  public void documentChanged(@NotNull DocumentEvent event) {
    try {
      int startLine = myDocument.getLineNumber(event.getOffset());
      int newEndLine = getAdjustedLineNumber(event.getOffset() + event.getNewLength());
      invalidateLines(startLine, myDocumentChangeOldEndLine, newEndLine, isSimpleText(event.getNewFragment()));
    }
    finally {
      myUpdateInProgress = false;
    }
  }
@Override
  public void documentChanged(@NotNull DocumentEvent event)