code: protected void print(List<? extends DocTree> list, String sep) throws IOException {
          if (list.isEmpty())
              return;
          boolean first = true;
          for (DocTree t: list) {
              if (!first)
                  print(sep);
              print(t);
              first = false;
          }
      }
docs: Print list., with separators