JComponent (@NotNull Presentation presentation, @NotNull String place) { JPanel panel = new JPanel(new GridBagLayout()); panel.add(new JLabel(IdeBundle.message("label.scope")), new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.BOTH, JBUI.insetsLeft(5), 0, 0)); panel.add(super.createCustomComponent(presentation, place), new GridBagConstraints(1, 0, 1, 1, 1, 1, GridBagConstraints.WEST, GridBagConstraints.BOTH, JBInsets.emptyInsets(), 0, 0)); if (ExperimentalUI.isNewUI()) { UIUtil.setBackgroundRecursively(panel, JBUI.CurrentTheme.ToolWindow.background()); } return panel; }