About an alternative way to do code completion: This is the paper: http://macbeth.cs.ucdavis.edu/cacheca.pdf this is the code repository: https://github.com/christinef/CACHECA and this is the tool in action: https://www.youtube.com/watch?v=3INk0N3JNtc
This was the student I was in contact with. Stef