Guava has a more precise check: Preconditions.checkNotNull(reference, errorMessage).