void (DnDTarget target, JComponent component) { component.putClientProperty(TARGET_KEY, target); //noinspection ResultOfObjectAllocationIgnored new DropTarget(component, DnDConstants.ACTION_COPY_OR_MOVE, myDropTargetListener); }