private static List<UsbDevice> collect(final UsbDevice device)
	{
		final List<UsbDevice> l = new ArrayList<>();
		if (device.isUsbHub())
			getAttachedDevices((UsbHub) device).forEach(d -> l.addAll(collect(d)));
		else
			l.add(device);
		return l;
	}
private static List < UsbDevice > collect ( final UsbDevice device ) { final List < UsbDevice > l = new ArrayList < > ( ) ; if ( device . isUsbHub ( ) ) getAttachedDevices ( ( UsbHub ) device ) . forEach ( d -> l . addAll ( collect ( d ) ) ) ; else l . add ( device ) ; return l ; }
}