class ArgChecker {

  public static <T> T[] noNulls(T[] argument, String name) {
    notNull(argument, name);
    for (int i = 0; i < argument.length; i++) {
      if (argument[i] == null) {
        throw new IllegalArgumentException("Argument array '" + name + "' must not contain null at index " + i);
      }
    }
    return argument;
  }

  private  ArgChecker();

}