private static void copyClassAnnotations ( final ClassNode cNode , final ClassNode helper ) { List < AnnotationNode > annotations = cNode . getAnnotations ( ) ; for ( AnnotationNode annotation : annotations ) { if ( ! annotation . getClassNode ( ) . equals ( Traits . TRAIT_CLASSNODE ) ) { helper . addAnnotation ( annotation ) ; } } }
Copies annotation from the trait to the helper excluding the trait annotation itself