code: PackageElement getUnnamedPackage() {
          return (toolEnv.source.allowModules())
                  ? toolEnv.syms.unnamedModule.unnamedPackage
                  : toolEnv.syms.noModule.unnamedPackage;
      }
docs: to return the proper unnamedPackage for all supported releases.