docs: public static String toCanonicalFilePath(URL fileURL) throws URISyntaxException, IOException {
          if (fileURL == null) {
              return null;
          }
  
          // Only handle jar: and file: schemes
          if (!"jar".equals(fileURL.getProtocol()) && !"file".equals(fileURL.getProtocol())) {
              return null;
          }
  
          // Parse the jar file location from the jar url. Doesn't open any resources.
          if ("jar".equals(fileURL.getProtocol())) {
              JarURLConnection jarURLConnection = (JarURLConnection) fileURL.openConnection();
              fileURL = jarURLConnection.getJarFileURL();
          }
  
          URI fileURI = fileURL.toURI();
          File file = new File(fileURI);
  
          // Use filesystem to resolve any sym links or dots in the path to
          // a singular unique file path
          File canonicalFile = file.getCanonicalFile();
  
          return canonicalFile.toURI().toString();
      }