This code gives me two warnings in each of the code branches, both
NPL: Warning: W0009: Expression result unused
paymentInformation = if (newPaymentInformation.vatNumber.isPresent() && newPaymentInformation.vatNumber.getOrFail().length() == 0) {
newPaymentInformation.copy(vatNumber = optionalOf<Text>());
} else {
newPaymentInformation;
}
This is obviously incorrect as the result of the both branches is used if the branch is active