Replaced lambda expression with method reference