void (@NotNull AnActionEvent e) { @Nullable XValueNodeImpl node = getValueNode(); Presentation presentation = e.getPresentation(); presentation.setEnabledAndVisible(node != null && canSetTextValue(node)); }