private IScriptCompletionProposal createFunctionProposal(CompletionProposal proposal) {
ScriptCompletionProposal scriptProposal = generateTwigProposal(proposal);
scriptProposal.setRelevance(computeRelevance(proposal));
scriptProposal.setProposalInfo(new FunctionProposalInfo(getSourceModule().getScriptProject(), proposal));
return scriptProposal;
}