question: public static void checkDuplicatedValue ( List < ExecutableElement > elements , Class clazz ) { Set < String > values = new HashSet < > ( ) ; for ( ExecutableElement method : elements ) { List < String > value = getValueFromAnnotation ( method , clazz ) ; if ( ! values . addAll ( value ) ) { throw new DuplicatedValueException ( value , method , clazz ) ; } } }
target:  Checks the elements in the provided list annotated with an annotation against duplicate values. <p/> Raises an exception if any annotation value is found multiple times.