@NotNull
  @Override
  final protected ValidationResultType doValidate(@NotNull String data, @NotNull EventContext context) {
    final Enum[] constants = myEnumClass.getEnumConstants();
    for (Enum constant : constants) {
      if (StringUtil.equals(constant.name(), data)) {
        return ValidationResultType.ACCEPTED;
      }
    }
    return ValidationResultType.REJECTED;
  }
@NotNull
  @Override
  final protected ValidationResultType doValidate(@NotNull String data, @NotNull EventContext context)