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;
}

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 ; }
filters the given set of devices by only selecting those devices that were actually used in this launch .
