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