docs: private URL getResourceFromLocation(String name, String altName, File location) {
  		if (location.isDirectory()) {
  			try {
  				if (altName != null) {
  					File f = new File(location, altName);
  					if (f.isFile() && f.canRead()) return f.toURI().toURL();
  				}
  				
  				File f = new File(location, name);
  				if (f.isFile() && f.canRead()) return f.toURI().toURL();
  				return null;
  			} catch (MalformedURLException e) {
  				return null;
  			}
  		}
  		
  		if (!location.isFile() || !location.canRead()) return null;
  		
  		File absoluteFile; {
  			try {
  				absoluteFile = location.getCanonicalFile();
  			} catch (Exception e) {
  				absoluteFile = location.getAbsoluteFile();
  			}
  		}
  		Set<String> jarContents = getOrMakeJarListing(absoluteFile.getAbsolutePath());
  		
  		String absoluteUri = absoluteFile.toURI().toString();
  		
  		try {
  			if (jarContents.contains(altName)) {
  				return new URI("jar:" + absoluteUri + "!/" + altName).toURL();
  			}
  		} catch (Exception ignore) {
  			// intentional fallthrough
  		}
  		
  		try {
  			if (jarContents.contains(name)) {
  				return new URI("jar:" + absoluteUri + "!/" + name).toURL();
  			}
  		} catch(Exception ignore) {
  			// intentional fallthrough
  		}
  		
  		return null;
  	}