@Nullable private static ActivityWrapper findLauncherActivityForDevice(@NotNull List<ActivityWrapper> launchableActivities,@NotNull IDevice device){
  if (device.supportsFeature(IDevice.HardwareFeature.TV)) {
    return findLeanbackLauncher(launchableActivities);
  }
  return null;
}

@ Nullable private static ActivityWrapper findLauncherActivityForDevice ( @ NotNull List < ActivityWrapper > launchableActivities , @ NotNull IDevice device ) { if ( device . supportsFeature ( IDevice . HardwareFeature . TV ) ) { return findLeanbackLauncher ( launchableActivities ) ; } return null ; }
returns a launchable activity specific to the given device .
