void GetPackageIfMissing() { if (Package == null) { Package = FindPackage(); } if (Package == null) { ThrowPackageNotFoundError(PackageId); } }