DiffRequest (@NotNull ApplyPatchForBaseRevisionTexts texts) { 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, Objects.requireNonNull(texts.getBase()), myFile); leftTitle = DiffBundle.message("merge.version.title.base"); } DiffContent rightContent = contentFactory.create(myProject, texts.getPatched(), myFile); return new SimpleDiffRequest(getRequestTitle(), leftContent, rightContent, leftTitle, VcsBundle.message("shelve.shelved.version")); }