CompletionProposalCollector collector = new CompletionProposalCollector(project);
ICompilationUnit unit = FieldAssistUtils.getTemporaryCompilationUnit(project);
contents = contents.substring(0, position);
String source = "public class _xxx { public static void hoge(){ " + contents + "}}";
FieldAssistUtils.setContentsToCU(unit, source);
unit.codeComplete(source.length() - 2, collector, DefaultWorkingCopyOwner.PRIMARY);
IJavaCompletionProposal[] proposals = collector.getJavaCompletionProposals();
List<ContentProposalImpl> result = new ArrayList<ContentProposalImpl>();
for(int j=0;j<proposals.length;j++){
if(proposals[j].getImage()!=null){