ActionToolbar (@Nullable JComponent editor) { ActionManager actionManager = ActionManager.getInstance(); @NotNull ActionGroup textActionGroup = (ActionGroup)actionManager.getAction(VcsLogActionIds.TEXT_FILTER_SETTINGS_ACTION_GROUP); ActionToolbarImpl toolbar = new ActionToolbarImpl(ActionPlaces.VCS_LOG_TOOLBAR_PLACE, textActionGroup, true) { @Override protected @NotNull ActionButton createToolbarButton(@NotNull AnAction action, ActionButtonLook look, @NotNull String place, @NotNull Presentation presentation, Supplier<? extends @NotNull Dimension> minimumSize) { MyActionButton button = new MyActionButton(action, presentation); button.setFocusable(true); applyToolbarLook(look, presentation, button); return button; } }; toolbar.setCustomButtonLook(new FieldInplaceActionButtonLook()); toolbar.setReservePlaceAutoPopupIcon(false); toolbar.setTargetComponent(editor); toolbar.updateActionsImmediately(); return toolbar; }