void (RefJavaElement element, Set<? super RefClass> dependencies) { addOwnerClassesToSet(element.getOutReferences(), dependencies); addOwnerClassesToSet(element.getOutTypeReferences(), dependencies); final List<RefEntity> children = element.getChildren(); for (RefEntity child : children) { if (child instanceof RefJavaElement && !(child instanceof RefClass)) { tabulateDependencyClasses((RefJavaElement)child, dependencies); } } }