Change (@NotNull final Project project) { if (myChange == null) { ContentRevision before = null; ContentRevision after = null; final File baseDir = new File(project.getBaseDir().getPath()); if (BEFORE_PATH != null) { final FilePath file = VcsUtil.getFilePath(new File(baseDir, BEFORE_PATH), false); before = new CurrentBinaryContentRevision(file) { @Override public byte @Nullable [] getBinaryContent() throws VcsException { return ObjectUtils.chooseNotNull(super.getBinaryContent(), EMPTY_BYTE_ARRAY); } @NotNull @Override public VcsRevisionNumber getRevisionNumber() { return new TextRevisionNumber(VcsBundle.message("local.version.title")); } }; } if (AFTER_PATH != null) { after = createBinaryContentRevision(project); } myChange = new Change(before, after); } return myChange; }