}
}
// Now use the knowledge about current scope and calculate possible
// shortcuts in code graph.
JsonStringSet prefixes = scopeTrieBuilder.calculateScopePrefixes(context, cursorPosition);
// Let language-specific modifications.
addShortcutsTo(context, prefixes);
PrefixIndex<CodeGraphProposal> codeGraphTrie = scopeTrieBuilder.getCodeGraphTrie();
JsonArray<AutocompleteProposal> codeProposals = JsonCollections.createArray();
// We're iterate found shortcuts...
for (String prefix : prefixes.getKeys().asIterable()) {
JsonArray<? extends CodeGraphProposal> proposals = codeGraphTrie.search(prefix + itemPrefix);
// Distill raw proposals.
int prefixLength = prefix.length();
for (CodeGraphProposal proposal : proposals.asIterable()) {
// Take part of string between prefix and period.