code: public static Builder from(URI swaggerUri) {
          Validate.notNull(swaggerUri, "swaggerUri must not be null");
          String scheme = swaggerUri.getScheme();
          if (scheme != null && swaggerUri.getScheme().startsWith("http")) {
              try {
                  return from(swaggerUri.toURL());
              } catch (MalformedURLException e) {
                  throw new RuntimeException("Failed to convert URI to URL", e);
              }
          } else if (scheme != null && swaggerUri.getScheme().startsWith("file")) {
              return from(Paths.get(swaggerUri));
          } else {
              return from(URIUtils.convertUriWithoutSchemeToFileScheme(swaggerUri));
          }
      }
docs: Creates a Swagger2MarkupConverter.Builder from a URI.
  
  @param swaggerUri the URI
  @return a Swagger2MarkupConverter