ITypeBinding type= getSelectedExpression().resolveTypeBinding(); if (type.isPrimitive()) return;  ImportEdit importEdit= new ImportEdit(fCu, fSettings); importEdit.addImport(Bindings.getFullyQualifiedImportName(type)); if (!importEdit.isEmpty())
TextEdit importEdit= createImportEditIfNeeded(); if (importEdit != null)
	private void addImportIfNeeded(TextChange change) throws CoreException {		ITypeBinding type= getSelectedExpression().resolveTypeBinding();		if (type.isPrimitive())			return;					ImportEdit importEdit= new ImportEdit(fCu, fSettings);		importEdit.addImport(Bindings.getFullyQualifiedImportName(type));		if (!importEdit.isEmpty())			change.addTextEdit(RefactoringCoreMessages.getString("ExtractTempRefactoring.update_imports"), importEdit); //$NON-NLS-1$	}