public List < Class < ? > > optionallyFindClasses ( Iterable < String > classNames ) { List < Class < ? > > answer = new ArrayList < Class < ? > > ( ) ; for ( String className : classNames ) { Class < ? > aClass = optionallyFindClass ( className ) ; if ( aClass != null ) { answer . add ( aClass ) ; } } return answer ; }
Tries to find as many of the class names on the class loaders as possible and return them