Ah, the beauty of higher-order functions in Java! :P