@Override
 public PropertyConstraintMappingContext constraint(ConstraintDef<?, ?> definition) {
   if (member instanceof Field) {
     super.addConstraint(ConfiguredConstraint.forProperty(definition, member));
   } else {
     super.addConstraint(
         ConfiguredConstraint.forExecutable(
             definition, ExecutableElement.forMethod((Method) member)));
   }
   return this;
 }