private void processProblemAnnotations(IAssistContext context, IAnnotationModel model, ArrayList proposals) {
private void processProblemAnnotations(IInvocationContext context, IAnnotationModel model, ArrayList proposals) {
	private void processProblemAnnotations(IAssistContext context, IAnnotationModel model, ArrayList proposals) {		int offset= context.getSelectionOffset();				ArrayList problems= new ArrayList();		Iterator iter= new JavaAnnotationIterator(model, true);		while (iter.hasNext()) {			IJavaAnnotation annot= (IJavaAnnotation) iter.next();			Position pos= model.getPosition((Annotation) annot);			if (isAtPosition(offset, pos)) {				int problemId= annot.getId();				if (problemId != -1) {					problems.add(new ProblemLocation(pos.getOffset(), pos.getLength(), annot));				} else {					if (annot instanceof MarkerAnnotation) {						IMarker marker= ((MarkerAnnotation) annot).getMarker();						IMarkerResolution[] res= PlatformUI.getWorkbench().getMarkerHelpRegistry().getResolutions(marker);						if (res.length > 0) {							for (int i= 0; i < res.length; i++) {								proposals.add(new MarkerResolutionProposal(res[i], marker));							}						}					}				}			}		}			IProblemLocation[] problemLocations= (IProblemLocation[]) problems.toArray(new IProblemLocation[problems.size()]);		collectCorrections(context, problemLocations, proposals);		collectAssists(context, problemLocations, proposals);	}