if (element instanceof IPackageFragmentRoot && !fFilterPackages) return getPackageFragments((IPackageFragmentRoot)element);
if (element instanceof IPackageFragmentRoot) { if (fFilterPackages) return ((IPackageFragmentRoot)element).getNonJavaResources(); else return getPackageFragments((IPackageFragmentRoot)element); }
	public Object[] getChildren(Object element) {		if (!exists(element))			return ArrayUtility.getEmptyArray();					try {			if (element instanceof IJavaModel) 				return getJavaProjects((IJavaModel)element);						if (element instanceof IJavaProject) {				if (fFilterPackages)					/*					 * XXX: Workaround for 1GFM3J3: ITPJUI:WINNT - JAR Packager: Reports duplicate entries for default package 					 * 		Use the commented line once the PR is fixed					 *///					return (IJavaProject)element).getNonJavaResources();					return getNonJavaResources((IJavaProject)element);									else					return getNonProjectPackageFragmentRoots((IJavaProject)element);			}			if (element instanceof IPackageFragmentRoot && !fFilterPackages) 				return getPackageFragments((IPackageFragmentRoot)element);						if (element instanceof IPackageFragment && fShowPackageContent)				return getPackageContents((IPackageFragment)element);							if (element instanceof IFolder && fShowPackageContent)				return getResources((IFolder)element);					} catch (JavaModelException e) {			return ArrayUtility.getEmptyArray();		}				return ArrayUtility.getEmptyArray();		}