public static boolean hasClass(MavenProject project,String... classNames){
  URLClassLoader compileClassLoader=getCompileClassLoader(project);
  for (  String className : classNames) {
    try {
      compileClassLoader.loadClass(className);
      return true;
    }
 catch (    Throwable e) {
    }
  }
  return false;
}

public static boolean hasClass ( MavenProject project , String ... classNames ) { URLClassLoader compileClassLoader = getCompileClassLoader ( project ) ; for ( String className : classNames ) { try { compileClassLoader . loadClass ( className ) ; return true ; } catch ( Throwable e ) { } } return false ; }
returns true if any of the given class names could be found on the given class loader
