code: private boolean hasConstantField(PackageElement pkg) {
          SortedSet<TypeElement> classes = !pkg.isUnnamed()
                    ? utils.getAllClasses(pkg)
                    : configuration.typeElementCatalog.allUnnamedClasses();
          boolean found = false;
          for (TypeElement te : classes) {
              if (utils.isIncluded(te) && hasConstantField(te)) {
                  found = true;
              }
          }
          return found;
      }
docs: Return true if the given package has constant fields to document.
  
  @param pkg   the package being checked.
  @return true if the given package has constant fields to document.