Use Java 8 lambdas instead of explicit listeners where possible.