If this is not used anywhere outside the decoder, I would keep this method package-private.