private static void bindGenericGenerators(XAnnotatedElement annotatedElement, Mappings mappings) { GenericGenerator defAnn = annotatedElement.getAnnotation( GenericGenerator.class ); GenericGenerators defsAnn = annotatedElement.getAnnotation( GenericGenerators.class ); if ( defAnn != null ) { bindGenericGenerator( defAnn, mappings ); } if ( defsAnn != null ) { for ( GenericGenerator def : defsAnn.value() ) { bindGenericGenerator( def, mappings ); } } }