/** * Scans the specified jars for packages and returns a list of all packages found in that jar. The scanner only * collects packages that contain class files. * * @return a collection of all package names found in the jar */ public Collection<String> scanPackages() { return scanJar(p -> Files.isDirectory(p) && containsClassFiles(p) && !isIgnored(p.toAbsolutePath())); }