Оптимизируй код java if (state.getExpirationDate().isBefore(dateTimeService.now())) { return businessErrorHelper.create("phone.change.sms.verification.code.expired"); } if (!state.getCode().equals(req.getCode())) { return businessErrorHelper.create("phone.change.sms.verification.code.wrong"); } if (!state.getPhone().equals(phone)) { return businessErrorHelper.create("phone.change.sms.verification.code.phone.wrong"); } if (!state.getChallengeId().equals(req.getChallengeToken())) { return businessErrorHelper.create("phone.change.sms.verification.challenge.wrong"); }