code: public Content getPackageName(PackageElement packageElement) {
          return packageElement == null || packageElement.isUnnamed()
                  ? contents.defaultPackageLabel
                  : getPackageLabel(packageElement.getQualifiedName());
      }
docs: Returns a packagename content.
  
  @param packageElement the package to check
  @return package name content