public void buildConstantSummaries(List elements) {
        PackageDoc[] packages = configuration.packages;
        printedPackageHeaders = new HashSet();
        for (int i = 0; i < packages.length; i++) {
            if (hasConstantField(packages[i])) {
                currentPackage = packages[i];
                //Build the documentation for the current package.
                build(elements);
            }
        }
    }