Fix checkNotNull(a, b) usages

checkNotNull(a, b) does not check nullness of b,
instead b is the error message. Fix these usages.

While here, also change checkState() to checkArgument()
since we are doing input validation.

Bug: 143084514
Test: compiles
Change-Id: I3d5fc4446863d18d14b9bfb1cbb94084dfc05d05
1 file changed