code: public PackageSetting getPackageSetting(String packageName) {
      PackageSetting setting = packageSettings.get(packageName);
      return setting == null ? null : new PackageSetting(setting);
    }
docs: Returns the current {@link PackageSetting} of {@code packageName}.
  
  If {@code packageName} is not present in this {@link ShadowPackageManager}, this method will
  return null.