Convert ArgumentMatcher<T> anonymous class to lambda

MSAL

Converts anonymous ArgumentMatcher<T> implementations with matches(Object) to lambda expressions with the correct parameter type. In Mockito 1.x, ArgumentMatcher<T> extended Hamcrest's BaseMatcher and matches always took Object. In Mockito 2+, ArgumentMatcher<T> is a functional interface where matches takes T.

org.openrewrite.java.testing.mockito.ArgumentMatcherToLambda
mod run . --recipe=org.openrewrite.java.testing.mockito.ArgumentMatcherToLambda

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.