private static DnDTarget getTarget(Component component) {
    if (component instanceof JComponent) {
      DnDTarget target = (DnDTarget)((JComponent)component).getClientProperty(TARGET_KEY);
      if (target != null) {
        return target;
      }
    }
    return NULL_TARGET;
  }
private static DnDTarget getTarget(Component component)