Change (@NotNull Change.Type type, @Nullable FilePath beforePath, @Nullable FilePath afterPath) { ContentRevision beforeRevision = beforePath == null ? null : myDiffHandler.createContentRevision(beforePath, myFirstParent); ContentRevision afterRevision = afterPath == null ? null : myDiffHandler.createContentRevision(afterPath, myCommit); return new Change(beforeRevision, afterRevision); }