change.addTextEdit("Change", SimpleTextEdit.createReplace(problemPos.getOffset(), problemPos.getLength(), simpleName));
change.addTextEdit("Change", SimpleTextEdit.createReplace(problemPos.getOffset(), typeName.length(), simpleName));
	public static void getTypeProposals(ProblemPosition problemPos, int kind, ArrayList proposals) throws CoreException {		String[] args= problemPos.getArguments();		if (args.length < 1) {			return;		}				ICompilationUnit cu= problemPos.getCompilationUnit();				// corrections		String typeName= cu.getBuffer().getText(problemPos.getOffset(), problemPos.getLength());				SimilarElementsRequestor requestor= new SimilarElementsRequestor(typeName, kind, null, null);		cu.codeComplete(problemPos.getOffset() + 1, requestor);		HashSet result= requestor.getResults();			CodeGenerationSettings settings= JavaPreferencesSettings.getCodeGenerationSettings();				Iterator iter= result.iterator();		while (iter.hasNext()) {			SimilarElement elem= (SimilarElement) iter.next();			String curr= elem.getName();						ImportEdit importEdit= new ImportEdit(cu, settings);			importEdit.addImport(curr);						String simpleName= Signature.getSimpleName(curr);			boolean importOnly= simpleName.equals(typeName);						CUCorrectionProposal proposal= new CUCorrectionProposal("", cu, 0); //$NON-NLS-1$			proposals.add(proposal);						CompilationUnitChange change= proposal.getCompilationUnitChange();						if (!importEdit.isEmpty()) {				change.addTextEdit("Add Import", importEdit); //$NON-NLS-1$			}			if (!importOnly) {				change.addTextEdit("Change", SimpleTextEdit.createReplace(problemPos.getOffset(), problemPos.getLength(), simpleName)); //$NON-NLS-1$				proposal.setDisplayName(CorrectionMessages.getFormattedString("UnresolvedElementsSubProcessor.changetype.description", simpleName)); //$NON-NLS-1$				proposal.setRelevance(3);			} else {				proposal.setDisplayName(CorrectionMessages.getFormattedString("UnresolvedElementsSubProcessor.importtype.description", curr)); //$NON-NLS-1$				proposal.setRelevance(5);			}		}					}