if (simpleName.equals(node.getIdentifier())) {
if (node.isSimpleName() && simpleName.equals(((SimpleName) node).getIdentifier())) {
	private static CUCorrectionProposal createTypeRefChangeProposal(ICompilationUnit cu, String fullName, SimpleName node, int relevance) throws JavaModelException {		CUCorrectionProposal proposal= new CUCorrectionProposal("", cu, 0); //$NON-NLS-1$		ImportEdit importEdit= new ImportEdit(cu, JavaPreferencesSettings.getCodeGenerationSettings());						String simpleName= importEdit.addImport(fullName);				TextEdit root= proposal.getRootTextEdit();				if (!importEdit.isEmpty()) {			root.add(importEdit); //$NON-NLS-1$		}		if (simpleName.equals(node.getIdentifier())) { // import only			proposal.setImage(JavaPluginImages.get(JavaPluginImages.IMG_OBJS_IMPDECL));			proposal.setDisplayName(CorrectionMessages.getFormattedString("UnresolvedElementsSubProcessor.importtype.description", fullName)); //$NON-NLS-1$			proposal.setRelevance(relevance + 1);		} else {						root.add(SimpleTextEdit.createReplace(node.getStartPosition(), node.getLength(), simpleName)); //$NON-NLS-1$			proposal.setDisplayName(CorrectionMessages.getFormattedString("UnresolvedElementsSubProcessor.changetype.description", simpleName)); //$NON-NLS-1$			proposal.setRelevance(relevance);		}		return proposal;	}