Can we refactor to remove the `if` block, e.g.

`
boolean success = userRef.hasValue()
OAuthResult oauthResult = OAuthResult.builder()
                                              .withProvider(OAuthProvider.GOOGLE)
                                              .withSuccess(success);

if (success) {
   oauthResult.withToken(...);
  updateUser(token, userRef.requireValue();
}