class EclairFailureAnalyzer extends AbstractFailureAnalyzer<AnnotationUsageException> {

    String buildDescription(AnnotationUsageException cause) {
        StringBuilder builder = new StringBuilder(cause.getMessage() + "\n    - method: " + cause.getMethod());
        Annotation annotation = cause.getAnnotation();
        if (nonNull(annotation)) {
            builder.append("\n    - annotation: ").append(annotation);
        }
        return builder.toString();
    }

}