Change (Project project) { ContentRevision before = null; ContentRevision after = null; if (!myPatch.isNewFile()) { before = new CurrentBinaryContentRevision(getFilePath()) { @NotNull @Override public VcsRevisionNumber getRevisionNumber() { return new TextRevisionNumber(VcsBundle.message("local.version.title")); } }; } if (!myPatch.isDeletedFile()) { after = createNewContentRevision(getFilePath()); } return new Change(before, after); }