code: public static void generate(ConfigurationImpl configuration,
                                  PackageElement pkg, PackageElement prev,
                                  PackageElement next, boolean noDeprecated)
              throws DocFileIOException {
          DocPath path = DocPath.forPackage(pkg).resolve(DocPaths.PACKAGE_TREE);
          PackageTreeWriter packgen = new PackageTreeWriter(configuration, path, pkg, prev, next);
          packgen.generatePackageTreeFile();
      }
docs: Construct a PackageTreeWriter object and then use it to generate the
  package tree page.
  
  @param configuration the configuration for this run.
  @param pkg      Package for which tree file is to be generated.
  @param prev     Previous package in the alpha-ordered list.
  @param next     Next package in the alpha-ordered list.
  @param noDeprecated  If true, do not generate any information for
  deprecated classe or interfaces.
  @throws DocFileIOException if there is a problem generating the package tree page