Replace manual throw new IllegalArgumentException with Guava checkNotNull()

The checkNotNull() code style is more concise and throws a NullPointerException instead of an IllegalArgumentException, which is considered more appropriate in such situations. The used overloaded version of checkNotNull() accepts a message argument which is included in the exception when it is thrown.