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