void (@NotNull final AnActionEvent e) { final MyChecker checker = new MyChecker(); checker.execute(e); final Presentation presentation = e.getPresentation(); presentation.setEnabled(checker.isEnabled()); presentation.setVisible(checker.isVisible()); if (checker.isEnabled()) { presentation.setText(SvnBundle.messagePointer("action.share.whole.project.text")); } }