void (boolean forStubs, List<? extends File> srcFiles, final CompilationUnit unit) { for (final File file : srcFiles) { if (forStubs && file.getName().endsWith(".java")) { continue; } unit.addSource(new SourceUnit(file, unit.getConfiguration(), unit.getClassLoader(), unit.getErrorCollector())); } }