void (@NotNull Project project, @NotNull @NlsContexts.DialogTitle String dialogTitle, @NotNull LocalContent localContent, @NotNull ThrowableComputable<? extends Collection<Change>, ? extends VcsException> changesLoader) { MyLoadingChangesPanel changesPanel = createPanel(project, localContent, changesLoader); ChangesBrowserBase changesBrowser = changesPanel.getChangesBrowser(); DiffPreview diffPreview = ChangesBrowserToolWindow.createDiffPreview(project, changesBrowser, changesPanel); changesBrowser.setShowDiffActionPreview(diffPreview); Content content = ContentFactory.getInstance().createContent(changesPanel, dialogTitle, false); content.setPreferredFocusableComponent(changesBrowser.getPreferredFocusedComponent()); content.setDisposer(changesPanel); ChangesBrowserToolWindow.showTab(project, content); }