Replaced empty lambdas with method references.