void () { myContentPanel.setContent(myWrapperViewer.getComponent()); setTitle(myActiveRequest.getTitle()); FrameDiffTool.ToolbarComponents toolbarComponents1 = myViewer.init(); FrameDiffTool.ToolbarComponents toolbarComponents2 = myWrapperViewer.init(); buildToolbar(mergeActions(toolbarComponents1.toolbarActions, toolbarComponents2.toolbarActions)); buildActionPopup(mergeActions(toolbarComponents1.popupActions, toolbarComponents2.popupActions)); myToolbarStatusPanel.setContent(toolbarComponents1.statusPanel); // TODO: combine both panels ? if (shouldAddToolbarBottomBorder(toolbarComponents1)) { myTopPanel.setBorder(JBUI.Borders.customLine(JBColor.border(), 0, 0, 1, 0)); } }