public ICompletionExtension[] getCompletionExtensions() {
IRutaLanguageExtension[] extensions = getExtensions();
List result = new ArrayList();
for (int i = 0; i < extensions.length; i++) {
ICompletionExtension visitorExtension = extensions[i].createCompletionExtension();
if (visitorExtension != null) {
result.add(visitorExtension);
}
}
return (ICompletionExtension[]) result.toArray(new ICompletionExtension[result.size()]);