class LicenseInstallResult {
  public int code;
  public List<String> messages;

  public LicenseInstallResult(int code) {
    this.code = code;
    this.messages = new ArrayList<>();
  }

  public LicenseInstallResult(int code, String message) {
    this.code = code;
    this.messages = new ArrayList<>();
    messages.add(message);
  }

  public LicenseInstallResult(int code, List<String> results) {
    this.code = code;
    this.messages = new ArrayList<>();
    messages.addAll(results);

  }

  public void add(LicenseInstallResult result) {<FILL_FUNCTION_BODY>}
}

    if (result.code != 0) {
      this.code = result.code;
    }
    this.messages.addAll(result.messages);
  
<no_super_class>