This is for a lambda expression, a language feature first introduced in Java 8. Basically this is an inline anonymous function that takes container as a parameter. Usually lambdas return values but here it looks like it is just carrying out the "side effect" of calling addErrorPages to container. There is no type specified for container as Java intuits it from the context.
Lambda expressions are more than a language feature, they are also a whole area of computer science and functional programming. A good SO post describing them is here.