I review the PRs of @stsypanov in order to learn some code tips.

I found the code of https://github.com/spring-projects/spring-framework/pull/23053 may be simpler.