code: public static void requireArgValid(@NotNull final String name, @NotNull final String value) throws ConstraintViolationException {
          // CHECKSTYLE:ON
  
          final String trimmedLowerCaseValue = value.trim().toLowerCase();
          if (!isValid(trimmedLowerCaseValue)) {
              throw new ConstraintViolationException("The argument '" + name + "' is not valid: '" + trimmedLowerCaseValue + "'");
          }
  
      }
docs: CHECKSTYLE:OFF:RedundantThrows