void () { JComponent westComponent; if (ExperimentalUI.isNewUI()) { westComponent = createNewActionsToolbar(); } else { westComponent = JBUI.Panels.simplePanel() .addToLeft(createLeftActionsToolbar()) .addToRight(createRightActionsToolbar()); } add(westComponent, BorderLayout.WEST); }