if (template.matches(prefixLowerCase, context.getContextType().getId())) {
matches.add(createProposal(template, context, (IRegion) region, getRelevance(template, prefix)));
}
} else {
// as per http://dev.eclipse.org/newslists/news.eclipse.platform/msg26165.html
if (template.matches(prefix, context.getContextType().getId()) &&
template.getName().toLowerCase().startsWith(prefixLowerCase)) {
matches.add(createProposal(template, context, (IRegion)region,getRelevance(template, prefixLowerCase)));
}
}
}