public Set<CompilerCodeCompletionResult> getResults() {
TreeSet<CompilerCodeCompletionResult> set = new TreeSet<CompilerCodeCompletionResult>();
Collection<CodeCompletionItem> items = virtualMachineResults.getCompletionItems();
Iterator<CodeCompletionItem> iterator = items.iterator();
while(iterator.hasNext()) {
CodeCompletionItem next = iterator.next();
CompilerCodeCompletionResult nextResult = new CompilerCodeCompletionResult();
nextResult.setDisplayName(next.getDisplayName());
nextResult.setDisplayType(next.getDisplayType());
nextResult.setCompletion(next.getCompletion());
nextResult.setDocumentation(next.getDocumentation());
nextResult.setType(getType(next));
nextResult.setIsBaseClassMethod(next.isBaseClassMethod());
set.add(nextResult);
}
return set;
}