ToolbarComponents () { initPatchViewer(); ToolbarComponents components = new ToolbarComponents(); components.statusPanel = getStatusPanel(); components.toolbarActions = createToolbarActions(); components.closeHandler = () -> MergeUtil.showExitWithoutApplyingChangesDialog(this, myMergeRequest, myMergeContext, true); return components; }