public @NotNull List<DocumentEvent> getEventsSinceCommit(@NotNull Document document) {
    assert document instanceof DocumentImpl : document;
    UncommittedInfo info = getUncommittedInfo(document);
    if (info != null) {
      return new ArrayList<>(info.myEvents);
    }
    return Collections.emptyList();
  }
public @NotNull List<DocumentEvent> getEventsSinceCommit(@NotNull Document document)