private <T, A extends Annotation> void addProgrammaticConfiguredConstraints(List<ConfiguredConstraint<?, BeanConstraintLocation>> definitions,
Class<T> rootClass, Class<?> hierarchyClass,
Map<Class<?>, List<BeanMetaConstraint<?>>> constraints) {
for ( ConfiguredConstraint<?, BeanConstraintLocation> config : definitions ) {
A annotation = (A) createAnnotationProxy( config );
ConstraintOrigin definedIn = definedIn( rootClass, hierarchyClass );
ConstraintDescriptorImpl<A> constraintDescriptor = new ConstraintDescriptorImpl<A>(
annotation, constraintHelper, config.getLocation().getElementType(), definedIn
);
Member member = config.getLocation().getMember();