@Nullable
  Transferable createTransferable(@Nullable InputEvent event) {
    if (event instanceof MouseEvent mouse) {
      Point location = mouse.getLocationOnScreen();
      SwingUtilities.convertPointFromScreen(location, myTree);
      return createTransferable(myTree.getClosestPathForLocation(location.x, location.y));
    }
    return createTransferable(myTree.getSelectionPath());
  }
@Nullable
  Transferable createTransferable(@Nullable InputEvent event)