void ( RefElement element, Set<? super RefClass> dependencies) { final Collection<RefElement> references = element.getOutReferences(); final RefJavaUtil refUtil = RefJavaUtil.getInstance(); for (RefElement reference : references) { final RefClass refClass = refUtil.getTopLevelClass(reference); if (refClass != null) { dependencies.add(refClass); } } final List<RefEntity> children = element.getChildren(); for (RefEntity child : children) { if (child instanceof RefElement) { tabulateInitializationDependencyClasses((RefElement)child, dependencies); } } }