For readability, use the putIfAbsent() method.

Comment From: yuzawa-san

https://github.com/spring-projects/spring-framework/pull/29972 is a similar optimization