java: add messages to checkNotNull preconditions