what is wrong with this implementation is that it will fail only once, on the first class. and in order to catch the next one you should run JUnit again. Instead, would be much better to do:

```java
MatcherAssert.assertThat(
  types,
  Matchers.everyItem(
    new CustomMatcher<Class<?>>("annotated type") {
      // ..
    }
  )
);
```