List<Change> (@NotNull List<? extends Change> changes) { return ContainerUtil.map(changes, change -> { ContentRevision beforeRevision = change.getBeforeRevision(); ContentRevision afterRevision = change.getAfterRevision(); if (beforeRevision == null || afterRevision == null) return new Change(afterRevision, beforeRevision); return new Change(afterRevision, beforeRevision, change.getFileStatus()); }); }