class ApkPackage {

  @NotNull
  public ApkPackage addSubpackage(@NotNull String name) {
    return mySubpackagesByName.computeIfAbsent(name, k -> new ApkPackage(name, this));
  }

  public  ApkPackage(@NotNull String name, @Nullable ApkPackage parent);

}