*
* @param resource The resource to search for
* @return A {@link IVirtualFile} implementation that will wrap the resource, or null if no such resource exists
*/
public static IVirtualFile getResource (String resource) {
ClassLoaderResource rsc = ClassLoaderScanner.getResource(resource);
if (rsc == null && !resource.startsWith("/")) rsc = ClassLoaderScanner.getResource("META-INF/" + resource);
return rsc == null ? null : rsc.getFile();
}