JComponent (@NotNull Presentation presentation, @NotNull String place) { var button = new ActionButton(this, presentation, "LogSearchFilterToolbar", ActionToolbar.DEFAULT_MINIMUM_BUTTON_SIZE); var panel = new NonOpaquePanel(); panel.setBorder(new JBEmptyBorder(0, 2, 0, 2)); panel.setLayout(new HorizontalLayout(4, SwingConstants.CENTER)); panel.add(getSearchFilterComponent()); panel.add(new FlowLayoutWrapper(button)); return panel; }