DiffRequest (@NotNull TextFilePatch patch) { DiffContentFactory contentFactory = DiffContentFactory.getInstance(); DiffContent leftContent; String leftTitle; if (myWithLocal) { leftContent = contentFactory.create(myProject, myFile); leftTitle = DiffBundle.message("merge.version.title.current"); } else { leftContent = contentFactory.create(myProject, patch.getSingleHunkPatchText(), myFile); leftTitle = VcsBundle.message("shelve.shelved.version"); } DiffContent rightContent = contentFactory.createEmpty(); String rightTitle = null; return new SimpleDiffRequest(getRequestTitle(), leftContent, rightContent, leftTitle, rightTitle); }