public static @NotNull DumbAwareAction create(@Nullable @NlsActions.ActionText String text,
                                                @Nullable Icon icon,
                                                @NotNull Consumer<? super AnActionEvent> actionPerformed) {
    DumbAwareAction action = new SimpleDumbAwareAction(text, actionPerformed);
    action.getTemplatePresentation().setIcon(icon);
    return action;
  }
public static @NotNull DumbAwareAction create(@Nullable @NlsActions.ActionText String text,
                                                @Nullable Icon icon,
                                                @NotNull Consumer<? super AnActionEvent> actionPerformed)