Instead of writing boilerplate classes to serve as matchers for things like `find_if` and `erase_if`, we can use lambdas. I believe this simplifies the Listener class. Differential Revision: https://reviews.llvm.org/D152846