JComponent (@NotNull Presentation presentation, @NotNull String place) { ComboBoxButton button = createComboBoxButton(presentation); if (isNoWrapping(place)) return button; JPanel panel = new JPanel(new GridBagLayout()); GridBagConstraints constraints = new GridBagConstraints( 0, 0, 1, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, JBInsets.create(0, 3), 0, 0); panel.add(button, constraints); return panel; }