public static List < AnnotationData > extractValidationAnnotationData ( Annotation [ ] annotations , Set < String > allowedPackages ) { List < AnnotationData > annotationsList = new ArrayList <> ( ) ; for ( Annotation annotation : annotations ) { AnnotationData annotationData = new AnnotationData ( annotation , allowedPackages ) ; if ( annotationData . isAllowed ( ) ) { annotationsList . add ( annotationData ) ; } } return annotationsList ; }
Create an annotation data list .