void (@NotNull final AnActionEvent e) { super.update(e); ImageEditorActionUtil.setEnabled(e); e.getPresentation().setText(isSelected(e) ? IdeBundle.message("action.text.hide.grid") : IdeBundle.message("action.text.show.grid")); }