if (locations == null || locations.length == 0) {
return null;
}
final ArrayList resultingCollections = new ArrayList();
for (int i=0;i< locations.length;i++) {
IProblemLocation problemLocation = (IProblemLocation) locations[i];
process(context, problemLocation, resultingCollections);
}
IJavaCompletionProposal[] proposals = new IJavaCompletionProposal[resultingCollections.size()];
for(int i=0;i<resultingCollections.size();i++) {