void (@NotNull AnActionEvent event) { super.update(event); if (event.getPresentation().isEnabled()) { Task activeTask = getActiveTask(event); event.getPresentation().setEnabled(activeTask != null && hasTexts(activeTask)); } }