public ICompletionProposal[] computeQuickAssistProposals(
     IQuickAssistInvocationContext invocationContext) {
   ISourceViewer sourceViewer = invocationContext.getSourceViewer();
   int offset = -1;
   int length = 0;
   if (invocationContext instanceof TextInvocationContext) {
     TextInvocationContext textContext = (TextInvocationContext) invocationContext;
     offset = textContext.getOffset();
     length = textContext.getLength();
   }
   List<org.dresdenocl.language.ocl.resource.ocl.IOclQuickFix> quickFixes =
       getQuickFixes(sourceViewer, offset, length);
   ICompletionProposal[] proposals = new ICompletionProposal[quickFixes.size()];
   for (int i = 0; i < proposals.length; i++) {
     proposals[i] = createCompletionProposal(sourceViewer, quickFixes.get(i));
   }
   return proposals;
 }
 public org.eclipse.jface.text.contentassist.ICompletionProposal[] computeQuickAssistProposals(
     org.eclipse.jface.text.quickassist.IQuickAssistInvocationContext invocationContext) {
   org.eclipse.jface.text.source.ISourceViewer sourceViewer = invocationContext.getSourceViewer();
   int offset = -1;
   int length = 0;
   if (invocationContext instanceof org.eclipse.jface.text.source.TextInvocationContext) {
     org.eclipse.jface.text.source.TextInvocationContext textContext =
         (org.eclipse.jface.text.source.TextInvocationContext) invocationContext;
     offset = textContext.getOffset();
     length = textContext.getLength();
   }
   java.util.List<ASPM.resource.ASPM.IASPMQuickFix> quickFixes =
       getQuickFixes(sourceViewer, offset, length);
   org.eclipse.jface.text.contentassist.ICompletionProposal[] proposals =
       new org.eclipse.jface.text.contentassist.ICompletionProposal[quickFixes.size()];
   for (int i = 0; i < proposals.length; i++) {
     proposals[i] = createCompletionProposal(sourceViewer, quickFixes.get(i));
   }
   return proposals;
 }