@Override
    public void handleDoubleClickOrEnter(SimpleTree tree, InputEvent inputEvent) {
      if (myReferencedNode == null) {
        super.handleDoubleClickOrEnter(tree, inputEvent);
      }
      else {
        selectAndExpandReferencedNode();
      }
    }
@Override
    public void handleDoubleClickOrEnter(SimpleTree tree, InputEvent inputEvent)