@Override
  public @Nullable JTree getSource(DataContext context) {
    Component component = PlatformCoreDataKeys.CONTEXT_COMPONENT.getData(context);
    JTree tree = component instanceof JTree ? (JTree)component : null;
    return tree == null || SINGLE_TREE_SELECTION == tree.getSelectionModel().getSelectionMode() ? null : tree;
  }
@Override
  public @Nullable JTree getSource(DataContext context)