1. Early return to simplify the code structure;
  2. The spring new version start to use JDK 17. Use the instanceof new feature to simplify code;