使用 Optional 判 null 替代繁琐的 if ... else

NoSuchKey