Use guava checkNotNull/checkState.

Change-Id: I47567a2ce5b187989edc106447489c60d1ca72de