/**
  * Lazily adds the given package as an eventual import.
  *
  * @param pkg package
  */
 @Override
 public void addPackage(final IPackage pkg) {
   if (!eventualImportOrdinalsByPackage.containsKey(pkg)) {
     eventualImportOrdinalsByPackage.put(pkg, eventualImportTable.size());
     eventualImportTable.add(pkg);
   }
 }
 /** Adds the system pseudo-package as an eventual import. */
 @Override
 public void addSystemPackage() {
   systemEventualImportOrdinal = eventualImportTable.size();
   eventualImportTable.add(null);
 }