A really, really basic semantic indexer (Java version, reference implementation)