Use Java 8 lambda and method reference.