if (areMultipleLinesSelected(viewer)){ ICompletionProposal[] templateProposals= fQuickTemplateProcessor.computeCompletionProposals(viewer, documentOffset); if (templateProposals != null && templateProposals.length > 0) return templateProposals; else return new ICompletionProposal[]{new NoCorrectionProposal(null, null)}; }
	public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int documentOffset) {				ICompilationUnit cu= JavaUI.getWorkingCopyManager().getWorkingCopy(fEditor.getEditorInput());		IAnnotationModel model= JavaUI.getDocumentProvider().getAnnotationModel(fEditor.getEditorInput());		ArrayList proposals= new ArrayList();		if (model != null) {			int length= viewer != null ? viewer.getSelectedRange().y : 0;			processProblemAnnotations(cu, model, documentOffset, length, proposals);		}				if (proposals.isEmpty()) {			proposals.add(new NoCorrectionProposal(null, null));		}		ICompletionProposal[] res= (ICompletionProposal[]) proposals.toArray(new ICompletionProposal[proposals.size()]);		Arrays.sort(res, new CorrectionsComparator());		return res;	}