void (@NotNull AnActionEvent e) { super.update(e); e.getPresentation().setText(" " + getTemplateText()); TodoPanel todoPanel = e.getData(TODO_PANEL_DATA_KEY); e.getPresentation().setEnabled(todoPanel != null && todoPanel.mySettings.arePackagesShown); }