question: public static boolean excludeByPackage ( String pkg , List < String > excludePkg ) { for ( String ep : excludePkg ) { if ( pkg . matches ( ep ) ) { return true ; } } return false ; }
target:  Compare a package with a list of packages to determine whether the package should be excluded or not.