docs: public static URL toURL(String value) throws MalformedURLException {
          try {
              URL url = new URL(value);
              return url;
          } catch (MalformedURLException e) {
              try {
                  return new File(value).toURI().toURL();
              } catch (MalformedURLException e2) {
                  // throw the original
                  throw e;
              }
          }
      }