((File) clazz.getFile()).addDependencies((IFile[]) l .toArray(new IFile[l.size()]));
((HierarchicalFile) clazz.getFile()) .addDependencies((IHierarchicalFile[]) l .toArray(new IHierarchicalFile[l.size()]));
            public void end(String namespace, String name) throws Exception {                ClassImpl clazz = (ClassImpl) this.digester.peek();                List l = null;                IClass cls[] = clazz.listRequiredClasses(null);                for (int i = 0; i < cls.length; i++) {                    IFile file = cls[i].getFile();                    if (l == null) {                        l = new ArrayList();                    }                    l.add(file);                }                IFile resources[] = clazz.listRequiredResources(null);                if (resources.length > 0) {                    if (l == null) {                        l = new ArrayList();                    }                    l.addAll(Arrays.asList(resources));                }                if (l != null) {                    ((File) clazz.getFile()).addDependencies((IFile[]) l                            .toArray(new IFile[l.size()]));                }                this.digester.pop();            }