void () { setLayout(new BorderLayout()); ToolbarDecorator decorator = createToolbarDecorator(); final JPanel panel = decorator.createPanel(); add(panel, BorderLayout.CENTER); final String label = getLabelText(); if (label != null) { UIUtil.addBorder(panel, IdeBorderFactory.createTitledBorder(label, false, JBUI.insetsTop(8)).setShowLine(false)); } }