Use checkArgument instead of checkState.