using guava checkState