combine some code from AbstractrTemplateCompletionProposalComputer to MasonTemplateCompletionProposalComputer