JComponent (@NotNull Project project, @NotNull ModelPatch patch) { List<Change> changes = EntryStream.of(patch.getBranchChanges()).mapKeyValue((file, content) -> { FilePath filePath = VcsUtil.getFilePath(file); ContentRevision current = new CurrentContentRevision(filePath); ContentRevision changed = new SimpleContentRevision(content.toString(), filePath, VcsBundle.message("patched.version.name")); return new Change(current, changed); }).toList(); SimpleAsyncChangesBrowser browser = new SimpleAsyncChangesBrowser(project, false, false); browser.setChangesToDisplay(changes); return browser; }