code: private List<String> getParameterAsList(String name) {
          String[] values = getParameterValues(name);
          if (values == null) {
              return null;
          }
  
          List<String> valueList = new ArrayList<>(values.length);
          Collections.addAll(valueList, values);
          return valueList;
      }
docs: Returns the value of an activity's request parameter as a {@code List},
  or {@code null} if the parameter does not exist.
  
  @param name a {@code String} specifying the name of the parameter
  @return a {@code List} objects containing the parameter's values