DiffRequest (@Nullable Project project, @NotNull VirtualFile file) { DiffContentFactory contentFactory = DiffContentFactory.getInstance(); DiffContent content1 = contentFactory.createEmpty(); DiffContent content2 = contentFactory.create(project, file); SimpleDiffRequest request = new SimpleDiffRequest(DiffRequestFactory.getInstance().getTitle(file), content1, content2, null, ChangeDiffRequestProducer.getYourVersion()); DiffUtil.putDataKey(request, VcsDataKeys.CURRENT_UNVERSIONED, file); return request; }