Should better use `checkArgument` to propagate an `IllegalargumentException`.