private void addDSLProposals(final List list, int documentOffset, final String prefix, List dslItems) {
Iterator iterator = dslItems.iterator();
while (iterator.hasNext()) {
String consequence = (String) iterator.next();
RuleCompletionProposal p = new RuleCompletionProposal(
documentOffset - prefix.length(), prefix.length(), consequence);
p.setImage(DSL_ICON);
list.add(p);
}
}