code: private static String formatArg(List<Dependency> path) {
      StringBuilder builder = new StringBuilder();
      formatArgTo(path, builder);
      return builder.toString();
    }
docs: Formats a list of dependencies as a dependency path; see the class
  comments.