The size of a foreign substance which is present between a cathode and an
anode and which contributes to a short circuit therebetween is measured.
On the basis of the measured size, the wavelength of a laser beam with
which the foreign substance is irradiated is set, as is the number of
times of irradiation. The foreign substance is irradiated with the laser
beam to eliminate at least part of the foreign substance.