Bug reports should generally be accompanied by a test case!
When using `@NotEmpty` annotation on return type I'm getting following error:
javax.validation.ConstraintDeclarationException: HV000141: The constraint org.hibernate.validator.constraints.NotEmpty used ConstraintTarget#IMPLICIT where the target cannot be inferred.
It was discussed here
As a workaround it is possible to implement custom validator as with this commit