private static int resolvePackageToCompare(List<String> superClassList){
  for (int i=0; i < ACTIVITY_PACKAGE_NAMES.size(); i++) {
    if (superClassList.contains(ACTIVITY_PACKAGE_NAMES.get(i)))     return ACTIVITY;
  }
  for (int i=0; i < FRAGMENT_PACKAGE_NAMES.size(); i++) {
    if (superClassList.contains(FRAGMENT_PACKAGE_NAMES.get(i)))     return FRAGMENT;
  }
  return -1;
}

private static int resolvePackageToCompare ( List < String > superClassList ) { for ( int i = 0 ; i < ACTIVITY_PACKAGE_NAMES . size ( ) ; i ++ ) { if ( superClassList . contains ( ACTIVITY_PACKAGE_NAMES . get ( i ) ) ) return ACTIVITY ; } for ( int i = 0 ; i < FRAGMENT_PACKAGE_NAMES . size ( ) ; i ++ ) { if ( superClassList . contains ( FRAGMENT_PACKAGE_NAMES . get ( i ) ) ) return FRAGMENT ; } return - 1 ; }
cross checks the list of package names we ' ve built up against the list of activity package names and list of fragment package names .
