code: public static URL toUrl(@Nonnull final File file) {
  		Check.notNull(file, "file");
  
  		URL url = null;
  		try {
  			url = file.toURI().toURL();
  		} catch (final MalformedURLException e) {
  			throw new IllegalStateException("Can not construct an URL for passed file.", e);
  		}
  		return url;
  	}
docs: Gets the URL to a given {@code File}.
  
  @param file
  file to be converted to a URL
  @return an URL to the passed file
  @throws IllegalStateException
  if no URL can be resolved to the given file