@Override
  public void update(@NotNull final AnActionEvent e) {
    XValueNodeImpl node = getSelectedNode(e.getDataContext());
    e.getPresentation().setEnabled(node != null && isEnabled(node, e));
  }
@Override
  public void update(@NotNull final AnActionEvent e)