private Collection collectFiles(IContainer container) throws CoreException { ArrayList files = new ArrayList(0); ArrayList folders = new ArrayList(0);
private Collection<IResource> collectFiles(IContainer container) throws CoreException { ArrayList<IResource> files = new ArrayList<IResource>(0); ArrayList<IResource> folders = new ArrayList<IResource>(0);
	private Collection collectFiles(IContainer container) throws CoreException {		ArrayList files = new ArrayList(0);		ArrayList folders = new ArrayList(0);		IResource children[] = container.members();		for (int i = 0; i < children.length; i++) {			IResource child = children[i];			int childType = child.getType();			if (childType == IResource.FILE) {				if (DEBUG) {					System.out.println(						"Project file: " + child.getFullPath().toOSString());				}				if (Util.isJavaArtifact(child)) {					files.add(child);				}			}			else if (childType == IResource.FOLDER) {				folders.add(child);			}		}				for (Iterator iter = folders.iterator();			iter.hasNext();			files.addAll(collectFiles((IContainer) iter.next())));					return files;	}