Hate to bug you about the same line, but given taht anyOf(hasAnnotation(),hasAnnotation()) is stateless, this should be a private static final Matcher and be all-caps per rules around constant.