private Collection collectFiles(IResourceDelta delta) { ArrayList files = new ArrayList(0); ArrayList folders = new ArrayList(0);
private Collection<IResource> collectFiles(IResourceDelta delta) { ArrayList<IResource> files = new ArrayList<IResource>(0); ArrayList<IResourceDelta> folders = new ArrayList<IResourceDelta>(0);
	private Collection collectFiles(IResourceDelta delta) {		ArrayList files = new ArrayList(0);		ArrayList folders = new ArrayList(0);		IResourceDelta affectedChildren[] = delta.getAffectedChildren();		for (int i = 0; i < affectedChildren.length; i++) {			IResourceDelta childDelta = affectedChildren[i];			IResource child = childDelta.getResource();			int childType = child.getType();			if (childType == IResource.FILE) {				if (DEBUG) {					System.out.println(						"Delta file: " + child.getFullPath().toOSString());				}				int deltaKind = childDelta.getKind();				if ((deltaKind == IResourceDelta.ADDED					|| deltaKind == IResourceDelta.CHANGED)) {					if (Util.isJavaArtifact(child)) {						files.add(child);					}				}			}			else {				if (childType == IResource.FOLDER) {					folders.add(childDelta);				}			}		}				for (Iterator iter = folders.iterator();			iter.hasNext();			files.addAll(collectFiles((IResourceDelta) iter.next())));		return files;	}