void (@NotNull final AnActionEvent e) { Presentation presentation = e.getPresentation(); IgnoreGroupHelperAction helper = IgnoreGroupHelperAction.createFor(e); if (helper == null) { presentation.setEnabledAndVisible(false); return; } if (helper.allAreIgnored()) { presentation.setText(messagePointer("group.RevertIgnoreChoicesGroup.text")); } else if (helper.allCanBeIgnored()) { presentation.setText(messagePointer("group.IgnoreChoicesGroup.text")); } }