You remove static electricity from car body panels by allowing the panel to discharge. Another way is using a an anti-stat gun that replaces the positive ion particles with negative ones.

Static electricity can be removed from paint by using a humidifier in the work area, or by using an anti stat gun prior to painting the panel The humidity will help to dissipate the static charge, and the water will help to reduce the amount of dust that is attracted to the paint.

Static electricity can also be caused by friction. For example, if you rub the panel in preparation, it will create static electricity. And if there is a lot of humidity in the air, that will also increase the amount of static electricity that is created.

The metal particles of the paint react to the electrostatic phenomenon in the same way iron fillings react when placing a magnet above them. They are attracted and point in different directions. This is what causes shadows, no shine, paint runs and excess paint material