Change (@NotNull String committed, @NotNull PsiFile file) { FilePath filePath = VcsUtil.getFilePath(file.getVirtualFile()); ContentRevision before = new SimpleContentRevision(committed, filePath, ""); ContentRevision after = new SimpleContentRevision("", filePath, ""); return new Change(before, after); }