else return pkgFragment;
else { LogicalPackage lp= createLogicalPackage(pkgFragment); if(lp == null) return pkgFragment; else return lp; }
	public Object getParent(Object element) {				try {			if (element instanceof IPackageFragment) {				IPackageFragment fragment= (IPackageFragment) element;				if(!fragment.exists())					return null;						Object parent= getHierarchicalParent(fragment);				if(parent instanceof IPackageFragment) {					IPackageFragment pkgFragment= (IPackageFragment)parent;					LogicalPackage logicalPkg= findLogicalPackage(pkgFragment);					if (logicalPkg != null)						return logicalPkg;					else 						return pkgFragment;				} 				return parent;							} else if(element instanceof LogicalPackage){				LogicalPackage el= (LogicalPackage) element;				IPackageFragment fragment= el.getFragments()[0];				Object parent= getHierarchicalParent(fragment);				if(parent instanceof IPackageFragment){					IPackageFragment pkgFragment= (IPackageFragment) parent;					LogicalPackage logicalPkg= findLogicalPackage(pkgFragment);					if (logicalPkg != null)						return logicalPkg;					else						return pkgFragment;				} else					return fragment.getJavaProject();			} 		} catch (JavaModelException e) {			JavaPlugin.log(e);		}		return null;	}