void (@NotNull Project project, @NotNull @NlsContexts.DialogTitle String title, @NotNull List<? extends Change> changes) { DialogBuilder dialogBuilder = new DialogBuilder(project); dialogBuilder.setTitle(title); dialogBuilder.setActionDescriptors(new DialogBuilder.CloseDialogAction()); final SimpleAsyncChangesBrowser changesBrowser = new SimpleAsyncChangesBrowser(project, false, true); changesBrowser.setChangesToDisplay(changes); dialogBuilder.setCenterPanel(changesBrowser); dialogBuilder.setPreferredFocusComponent(changesBrowser.getPreferredFocusedComponent()); dialogBuilder.setDimensionServiceKey("VcsDiffUtil.ChangesDialog"); dialogBuilder.addDisposable(() -> changesBrowser.shutdown()); dialogBuilder.showNotModal(); }