JComponent (@NotNull Presentation presentation, @NotNull String place) { ComboBoxButton button = new RunConfigurationsComboBoxButton(presentation); if (isNoWrapping(place)) return button; NonOpaquePanel panel = new NonOpaquePanel(new BorderLayout()); Border border = UIUtil.isUnderDefaultMacTheme() ? JBUI.Borders.empty(0, 2) : JBUI.Borders.empty(0, 5, 0, 4); panel.setBorder(border); panel.add(button); return panel; }