DumbAwareAction (@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; }