void (BuildTarget<?> target, LinkedHashSet<? super BuildTarget<?>> result, CompileContext context) { if (result.add(target)) { for (BuildTarget<?> dep : getDependencies(target,context)) { collectDependenciesRecursively(dep, result, context); } } }