ActionButtonWithText (@NotNull AnAction action, @NotNull String place, @NotNull Presentation presentation, Supplier<? extends @NotNull Dimension> minimumSize) { ActionButtonWithText button = super.createTextButton(action, place, presentation, minimumSize); JBColor color = JBColor.lazy(() -> { return ObjectUtils.notNull(editor.getColorsScheme().getColor(ICON_TEXT_COLOR), ICON_TEXT_COLOR.getDefaultColor()); }); button.setForeground(color); return button; }