Creates lambda expression for Java8