public static IResource getResource(Object o){ if (o instanceof IResource) return (IResource)o; if (o instanceof IJavaElement) return getResource((IJavaElement)o); return null;
public static IResource getResource(ICompilationUnit cu) { return cu.getResource();
	public static IResource getResource(Object o){		if (o instanceof IResource)			return (IResource)o;		if (o instanceof IJavaElement)			return getResource((IJavaElement)o);		return null;		}