Object info = proposal.getExtraInfo();
if ( !(info instanceof PDTCompletionInfo) )
return null;
PDTCompletionInfo additional = (PDTCompletionInfo) info;
String completion = new String(proposal.getCompletion());
int replaceStart = proposal.getReplaceStart();
int length = getLength(proposal);
Image image = getImage(getLabelProvider().createTypeImageDescriptor(proposal));
String displayString = (getLabelProvider()).createLabel(proposal);
SuperclassMethodCompletionProposal scriptProposal = new SuperclassMethodCompletionProposal(completion,
replaceStart, length, image, displayString, 0, (IMethod) proposal.getModelElement(), additional.getSource());
scriptProposal.setRelevance(Integer.MAX_VALUE);
scriptProposal.setProposalInfo(new MethodProposalInfo(getScriptProject(), proposal));