}
private static void recurseFinder(Set<OneJarEntry> result, Set<String> imports, CacheJars cache) {
for(String jarImp: imports) {
OneJarEntry matchingJar = cache.findJar(jarImp);
if (matchingJar != null && !result.contains(matchingJar)) {
log.info("Need this jar: "+ matchingJar);
result.add(matchingJar);
// for matching jar check imports from class, which srcImp has recerencing
String sourceJarPath = CacheJars.makeSrcJarPath(matchingJar.getJarPath());
if(new File(sourceJarPath).exists()) {
JarResources srcJar = new JarResources(sourceJarPath);
recurseFinder(result, srcJar.getAllImports(jarImp), cache);
}
}