List<AnAction> (@NotNull ConfigurationContext context, @NotNull List<? extends ConfigurationFromContext> configurations) { if (configurations.size() <= 1) { return Collections.emptyList(); } final List<AnAction> childActions = new ArrayList<>(); for (final ConfigurationFromContext fromContext : configurations) { final ConfigurationType configurationType = fromContext.getConfigurationType(); final String actionName = childActionName(fromContext); //noinspection DialogTitleCapitalization final AnAction anAction = new AnAction(actionName, configurationType.getDisplayName(), fromContext.getConfiguration().getIcon()) { @Override public void actionPerformed(@NotNull AnActionEvent e) { perform(fromContext, ConfigurationContext.getFromContext(e.getDataContext(), e.getPlace())); } }; anAction.getTemplatePresentation().setText(actionName, false); childActions.add(anAction); } return childActions; }