void (@NotNull AnActionEvent e) { final boolean b = isEnabled(); e.getPresentation().setEnabled(b); e.getPresentation().setText(JavaUiBundle.message("action.text.0.disabled.if.elements.are.sorted", getTemplatePresentation().getText())); }