code: public boolean isExternal(ProgramElementDoc doc) {
          if (packageToItemMap == null) {
              return false;
          }
          return packageToItemMap.get(doc.containingPackage().name()) != null;
      }
docs: Determine if a doc item is externally documented.
  
  @param doc A ProgramElementDoc.