question: public Collection < IDevice > filterByUsed ( @ NotNull Collection < IDevice > devices ) { Set < IDevice > used = Sets . newHashSetWithExpectedSize ( myDevicesUsedInLaunch . size ( ) ) ; for ( IDevice d : devices ) { if ( myDevicesUsedInLaunch . contains ( d . getSerialNumber ( ) ) ) { used . add ( d ) ; } } return used ; }
target:  Filters the given set of devices by only selecting those devices that were actually used in this launch. 