question: public static List < ModuleSpec > expandSpecWildcards ( File dir , List < ModuleSpec > modules , Backend forBackend ) { List < File > dirs = new ArrayList < File > ( ) ; dirs . add ( dir ) ; return expandSpecWildcards ( dirs , modules , forBackend ) ; }
target:  Given a source directory and a list of ModuleSpecs that possibly contain wildcards it returns a expanded list of ModuleSpecs of modules that were actually found in the given source directory. ModuleSpecs that didn't contain wildcards are left alone (it's not checked if they exist or not). If a Backend is passed expanded modules will be checked if they support it (they either don't have a native annotation or it is for the correct backend).