The documentation [currently uses `AnnotationMethodMatcher`](https://github.com/spring-projects/spring-security/issues/11024#issuecomment-1088408171), but this is incorrect. The code requires a `Pointcut`.