docs: public static String normalizePath(String path) {
          requireNonNull(path, "path");
          if (path.isEmpty()) {
              return "/";
          }
  
          if (!path.startsWith("/")) {
              path = '/' + path;
          }
  
          if (!path.endsWith("/")) {
              path += '/';
          }
  
          return path.replaceAll("//+", "/");
      }