private Object getGrandParent(IJavaElement element) { Object object= getParent(element); if((object!=null) && (object instanceof IPackageFragment)) { IPackageFragment frag= (IPackageFragment)object; if(frag.exists()) return getParent(object);
private Object getGrandParent(IPackageFragment element) {  Object parent= findNextLevelChildrenByElementName(element, element.getParent()); if (parent instanceof IPackageFragmentRoot) { IPackageFragmentRoot root= (IPackageFragmentRoot) parent; if(isRootProject(root)) return root.getJavaProject(); else return root;
	private Object getGrandParent(IJavaElement element) {		Object object= getParent(element);		if((object!=null) && (object instanceof IPackageFragment)) {			IPackageFragment frag= (IPackageFragment)object;			if(frag.exists())					return getParent(object);		}		return object;	}