void (@Nullable Project project, @NotNull AnAction action, AnActionEvent @NotNull ... events) { List<String> actionNames = new ArrayList<>(); for (AnActionEvent event : events) { String s = event.getPresentation().getText(); if (StringUtil.isNotEmpty(s)) { actionNames.add(s); } } if (LOG.isDebugEnabled()) { LOG.debug("Showing dumb mode warning for " + Arrays.asList(events), new Throwable()); } if (project == null) return; DumbService.getInstance(project).showDumbModeNotificationForAction(getActionUnavailableMessage(actionNames), ActionManager.getInstance().getId(action)); }