void setIconAndTextFromPresentation(@NotNull Presentation presentation, @Nullable TouchbarActionCustomizations touchBarAction) {
    if (touchBarAction != null) {
      if (touchBarAction.isShowImage() && touchBarAction.isShowText()) {
        setIconFromPresentation(presentation);
        setText(presentation.getText());
      }
      else if (touchBarAction.isShowText()) {
        setText(presentation.getText());
        setIcon(null);
      }
      else {
        setIconFromPresentation(presentation);
        setText(originIcon != null ? null : presentation.getText());
      }
    }
    else {
      setIconFromPresentation(presentation);
      setText(originIcon != null ? null : presentation.getText());
    }
  }
void setIconAndTextFromPresentation(@NotNull Presentation presentation, @Nullable TouchbarActionCustomizations touchBarAction)