docs: private String getBasePath(String path1, String path2) {
  
          StringBuffer base = new StringBuffer();
          path1 = path1.replace('\\', '/');
          path2 = path2.replace('\\', '/');
  
          String[] parts1 = path1.split("/");
          String[] parts2 = path2.split("/");
  
          for (int i = 0; i < parts1.length; i++) {
              if (i >= parts2.length) {
                  break;
              }
              if (parts1[i].equals(parts2[i])) {
                  base.append(parts1[i] + "/");
              }
          }
  
          return base.toString();
      }