codeintel: Reimplement clang and java autoindexing hints in Lua
Created by: efritz
In order to replace the current Go inference code with Lua (see #33045 (closed)), we need to ensure we have functional parity. We've recently added "hints" to aid with the code intelligence badge effort, which were not part of the original RFC. This PR implements the hints functionality in the Java and Clang recognizers so we can continue with the deprecation of the old code.
Test plan
N/A.