IResource resource= (IResource)((IAdaptable) element).getAdapter(IResource.class);
IResource resource= (IResource)element.getAdapter(IResource.class);
	private static IFile getCandidate(IAdaptable element) throws JavaModelException {		IResource resource= (IResource)((IAdaptable) element).getAdapter(IResource.class);		if (! (resource instanceof IFile))			return null;				IJavaProject project= JavaCore.create(resource.getProject());		if (project != null && project.exists() && (null == project.findPackageFragmentRoot(resource.getFullPath())))			return (IFile) resource;		return null;	}