void () { myContentPanel.setContent(myViewer.getComponent()); setTitle(myActiveRequest.getTitle()); FrameDiffTool.ToolbarComponents toolbarComponents = myViewer.init(); FrameDiffTool.DiffInfo diffInfo = toolbarComponents.diffInfo; if (diffInfo != null) { myDiffInfoWrapper.setContent(diffInfo.getComponent()); } else { myDiffInfoWrapper.setContent(null); } buildToolbar(toolbarComponents.toolbarActions); buildActionPopup(toolbarComponents.popupActions); myToolbarStatusPanel.setContent(toolbarComponents.statusPanel); if (shouldAddToolbarBottomBorder(toolbarComponents)) { myTopPanel.setBorder(JBUI.Borders.customLine(JBColor.border(), 0, 0, 1, 0)); } }