compiler: java: add messages to checkNotNull preconditions