// TODO: define a context and recorder that don't require a request.
IContentAssistContext context = createContentAssistContext(contents);
IContentAssistProposalRecorder recorder = createContentAssistRecorder();
IContentAssistCalculator calc = createContentAssistCalculator();
calc.computeProposals(context, recorder);
ArrayList<IContentProposal> proposals = new ArrayList<IContentProposal>();
ICompletionProposal[] results = request.getCompletionProposals();
if (results != null && results.length > 0) {