void (final Presentation presentation, final @NotNull String actionText, final ConfigurationContext context) { presentation.setText(myExecutor.getStartActionText(actionText), true); Pair<Boolean, Boolean> b = isEnabledAndVisible(context); presentation.setEnabled(b.first); presentation.setVisible(b.second); }