question: 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 ; }
target:  Cross checks the list of package names we've built up against the list of Activity package names and list of Fragment package names.