else return root;
return root; } else if (parent instanceof IPackageFragment) { return getHierarchicalPackageParent((IPackageFragment) parent);
	private Object getGrandParent(IPackageFragment element) {		Object parent= findNextLevelParentByElementName(element);		if (parent instanceof IPackageFragmentRoot) {			IPackageFragmentRoot root= (IPackageFragmentRoot) parent;			if(isRootProject(root))				return root.getJavaProject();			else return root;		}		Object grandParent= getParent(parent);		if(grandParent==null){			return parent;		}		return grandParent;	}