ActionButton (@NotNull AnAction action, @Nullable ActionButtonLook look, @NotNull String place, @NotNull Presentation presentation, Supplier<? extends @NotNull Dimension> minimumSize) { ActionButton actionButton; if (action.displayTextInToolbar()) { actionButton = createTextButton(action, place, presentation, minimumSize); } else { actionButton = createIconButton(action, place, presentation, minimumSize); } applyToolbarLook(look, presentation, actionButton); return actionButton; }