Object[] children= root.getChildren(); for (int k= 0; k < children.length; k++) list.add(children[k]); } else if (hasChildren(root)) {
Object[] fragments= getPackageFragmentRootContent(root); for (int j= 0; j < fragments.length; j++) { list.add(fragments[j]); } } else {
	protected Object[] getPackageFragmentRoots(IJavaProject project) throws JavaModelException {		if (!project.getProject().isOpen())			return NO_CHILDREN;					IPackageFragmentRoot[] roots= project.getPackageFragmentRoots();		List list= new ArrayList(roots.length);		// filter out package fragments that correspond to projects and		// replace them with the package fragments directly		for (int i= 0; i < roots.length; i++) {			IPackageFragmentRoot root= roots[i];			if (isProjectPackageFragmentRoot(root)) {				Object[] children= root.getChildren();				for (int k= 0; k < children.length; k++) 					list.add(children[k]);			}			else if (hasChildren(root)) {				list.add(root);			} 		}		return concatenate(list.toArray(), project.getNonJavaResources());	}