ITypeBinding typeBinding= expression.resolveTypeBinding(); if (typeBinding != null) { typeBinding= Bindings.normalizeForDeclarationUse(typeBinding, fCURewrite.getAST()); return fCURewrite.getImportRewrite().addImport(typeBinding, fCURewrite.getAST()); } else { return fCURewrite.getAST().newSimpleType(fCURewrite.getAST().newSimpleName("Object"));
if (fLinkedProposalModel != null) { LinkedProposalPositionGroup typeGroup= fLinkedProposalModel.getPositionGroup(KEY_TYPE, true); typeGroup.addPosition(rewrite.track(resultingType), false); if (typeBinding != null) { ITypeBinding[] relaxingTypes= ASTResolving.getRelaxingTypes(ast, typeBinding); for (int i= 0; i < relaxingTypes.length; i++) { typeGroup.addProposal(relaxingTypes[i], fCURewrite.getCu(), relaxingTypes.length - i); } }
	private Type createTempType() throws CoreException {		Expression expression= getSelectedExpression().getAssociatedExpression();				if (expression instanceof ClassInstanceCreation) {			ClassInstanceCreation creation= (ClassInstanceCreation) expression;			return (Type) fCURewrite.getASTRewrite().createCopyTarget(creation.getType());		} else if (expression instanceof CastExpression) {			CastExpression cast= (CastExpression) expression;			return (Type) fCURewrite.getASTRewrite().createCopyTarget(cast.getType());		}				ITypeBinding typeBinding= expression.resolveTypeBinding();		if (typeBinding != null) {			typeBinding= Bindings.normalizeForDeclarationUse(typeBinding, fCURewrite.getAST());			return fCURewrite.getImportRewrite().addImport(typeBinding, fCURewrite.getAST());		} else {			return fCURewrite.getAST().newSimpleType(fCURewrite.getAST().newSimpleName("Object")); //$NON-NLS-1$		}			}