Some null annotations and javadoc fix

While searching how to work with queues...
Not sure if `@Nullable` or `@CheckForNull` is more appropriate here, but the `parent` field is `public` and that needs to be marked `@CheckForNull`.