docs: public static String getPath(String... parts) {
          if (parts == null || parts.length == 0) {
              throw new IllegalArgumentException("Parts is null or empty.");
          }
  
          StringBuilder builder = new StringBuilder();
          for (int i = 0; i < parts.length; i++) {
              String part = parts[i];
              builder.append(part);
  
              boolean hasMore = i < parts.length - 1;
              if (!part.endsWith(File.separator) && hasMore) {
                  builder.append(File.separator);
              }
          }
  
          return builder.toString();
      }