code: private URL extractActualUrl(URL jarUrl) throws MalformedURLException {
          String urlFile = jarUrl.getFile();
          int separatorIndex = urlFile.indexOf("!/");
          if (separatorIndex != -1) {
              String jarFile = urlFile.substring(0, separatorIndex);
  
              try {
                  return new URL(jarFile);
              } catch (MalformedURLException var5) {
                  if (!jarFile.startsWith("/")) {
                      jarFile = "/" + jarFile;
                  }
  
                  return new URL("file:" + jarFile);
              }
          } else {
              return jarUrl;
          }
      }
docs: Extracts parent Jar URL from original ClassPath entry URL.
  
  @param jarUrl Original URL of the resource
  @return URL of the Jar file, containing requested resource
  @throws MalformedURLException