docs: private static void addInputPath(Job job, Iterable<String> pathStrings, Class<? extends InputFormat> inputFormatClass)
    {
      Configuration conf = job.getConfiguration();
      StringBuilder inputFormats = new StringBuilder(
          StringUtils.nullToEmptyNonDruidDataString(conf.get(MultipleInputs.DIR_FORMATS))
      );
  
      String[] paths = Iterables.toArray(pathStrings, String.class);
      for (int i = 0; i < paths.length - 1; i++) {
        if (inputFormats.length() > 0) {
          inputFormats.append(',');
        }
        inputFormats.append(paths[i]).append(';').append(inputFormatClass.getName());
      }
      if (inputFormats.length() > 0) {
        conf.set(MultipleInputs.DIR_FORMATS, inputFormats.toString());
      }
      // add last one separately for possible initialization in MultipleInputs
      MultipleInputs.addInputPath(job, new Path(paths[paths.length - 1]), inputFormatClass);
    }