Preparations for #17912: Add missing JavaDoc for private methods.