A method of treating a varicose vein involves contacting the inner wall of the vein with a contact member, withdrawing an outer sheath relative to a self-expanding member positioned inside the outer sheath while the contact member remains in contact with the inner wall of the vein to cause a first spasm in the vein that decreases the vein inner diameter, relatively moving the outer sheath and the self-expanding member so that the self-expanding member is located distally beyond the distal end of the outer sheath so that the self-expanding member self-expands outwardly into contact with the inner wall of the vein, and moving the catheter and the self-expanding member relative to the vein while the self-expanding member is in contact with the inner wall of the vein to cause a second spasm in the vein, and applying energy to the inner wall of the collapsed vein.