Just strip it down and check for any metal filings or anything substantially loose.
To be honest the gearbox is soaked in oil so it's unlikely that you would hear anything. Plus it's tightly packed. I've had the idle gear retainer come off and all that happened was it fell to the bottom and that was it.
I'd be more inclined to say it's something on the bike loose.