The meaning of a name classified as a PackageName is determined as follows.
6.5.3.1. Simple Package Names
If a package name consists of a single Identifier, then this identifier denotes a top level package named by that identifier.
If no top level package of that name is in scope (§6.3), then a compile-time error occurs.
6.5.3.2. Qualified Package Names
If a package name is of the form Q.Id, then Q must also be a package name. The package name Q.Id names a package that is the member named Id within the package named by Q.
If Q does not name an observable package (§7.4.3), or Id is not the simple name of an observable subpackage of that package, then a compile-time error occurs.