code: static Class<?> validateElementType(Class<?> clazz) {
          if (clazz.isEnum()) {
              return clazz;
          }
          if (supportedElementTypes.containsKey(clazz)) {
              return clazz;
          }
          throw new IllegalArgumentException("Parameter type '" + clazz.getName() + "' is not supported.");
      }
docs: Validates whether the specified element {@link Class} is supported.
  Throws {@link IllegalArgumentException} if it is not supported.