void (JComponent component, EditableArea area, ToolProvider provider, Class... dragTargets) { TreeDropListener listener = new TreeDropListener(area, provider, dragTargets); if (!ApplicationManager.getApplication().isHeadlessEnvironment()) { component.setDropTarget(new DropTarget(component, listener)); } }