private boolean containsAnnotation ( List < AnnotationExpr > annos , String annotationName ) { for ( AnnotationExpr anno : annos ) { if ( anno . getName ( ) . getName ( ) . equals ( annotationName ) ) { return true ; } } return false ; }
Check if the list of annotation contains the annotation of given name .