https://saveole.github.io/posts/using-BiFunction-to-simplify-code/
使用 BiFunction 简化重复代码 - saveole