public static @NotNull AnAction createEmptyAction(@Nullable @Nls(capitalization = Nls.Capitalization.Title) String name,
                                                    @Nullable Icon icon,
                                                    boolean alwaysEnabled) {
    EmptyAction emptyAction = new EmptyAction(alwaysEnabled);
    if (name != null || icon != null) {
      emptyAction.getTemplatePresentation().setText(name);
      emptyAction.getTemplatePresentation().setIcon(icon);
    }
    return emptyAction;
  }
public static @NotNull AnAction createEmptyAction(@Nullable @Nls(capitalization = Nls.Capitalization.Title) String name,
                                                    @Nullable Icon icon,
                                                    boolean alwaysEnabled)