private void addTestPackage(List<TestPackage> testList,ITestPackageDef testPkgDef){
  IRemoteTest testForPackage=testPkgDef.createTest(mCtsBuild.getTestCasesDir());
  if (testForPackage != null) {
    Collection<TestIdentifier> knownTests=testPkgDef.getTests();
    testList.add(new TestPackage(testPkgDef,testForPackage,knownTests));
  }
}

private void addTestPackage ( List < TestPackage > testList , ITestPackageDef testPkgDef ) { IRemoteTest testForPackage = testPkgDef . createTest ( mCtsBuild . getTestCasesDir ( ) ) ; if ( testForPackage != null ) { Collection < TestIdentifier > knownTests = testPkgDef . getTests ( ) ; testList . add ( new TestPackage ( testPkgDef , testForPackage , knownTests ) ) ; } }
adds a test package to the list of packages to test
