code: public static <T> ConstraintViolation<T> forReturnValueValidation(final String messageTemplate,
        final Map<String, Object> messageParameters, final Map<String, Object> expressionVariables,
        final String interpolatedMessage, final Class<T> rootBeanClass, final T rootBean,
        final Object leafBeanInstance, final Object value, final Path propertyPath,
        final ConstraintDescriptor<?> constraintDescriptor, final ElementType elementType,
        final Object executableReturnValue, final Object dynamicPayload) {
      return new ConstraintViolationImpl<>(messageTemplate, messageParameters, expressionVariables,
          interpolatedMessage, rootBeanClass, rootBean, leafBeanInstance, value, propertyPath,
          constraintDescriptor, elementType, null, executableReturnValue, dynamicPayload);
    }
docs: create ConstraintViolation for return value validation.