@Override
  protected void handle(final Project project, final String value, XDebuggerTree tree) {
    if (tree == null) return;
    List<? extends WatchNode> watchNodes = XWatchesTreeActionBase.getSelectedNodes(tree, WatchNode.class);
    if (watchNodes.isEmpty()) {
      CopyPasteManager.getInstance().setContents(new StringSelection(value));
    }
    else {
      CopyPasteManager.getInstance().setContents(
        new XWatchTransferable(value, ContainerUtil.map(watchNodes, WatchNode::getExpression)));
    }
  }
@Override
  protected void handle(final Project project, final String value, XDebuggerTree tree)