View attachment 81124View attachment 81123
Note this is for the '85-'89 bikes, it should be similar for 1990+, but for the pick-up coil (5 wires on the first 4 years [grey, green/white; orange; red/white; black], two wires on 1990-2007 bikes) and a couple other places. Note on the diagram above, the pick-up coils are shown on a semi-circular segment to reflect their induction role to the rotor on the end of the crankshaft; the three wires running from the stator to the R/R are hard-wired, there is no polarity issue, so any wire from the stator can connect to the corresponding wires running to the R/R, where the three R/R wires terminate into a three-way plug. You see the red wire from the R/R runs to the 30 amp main fuse. The ground for the early system is the mounting of the R/R to the piece it is bolted to. The later model R/R has a black separate ground wire instead of relying on the bolts fastening the R/R to the bike, providing the ground. It is not uncommon for the three stator wires becoming corroded, and causing overheating at the three-wire plastic disconnect to the R/R. The plastic terminal can brown from the excess heat generated, and will eventually crumble-apart, possibly leading to a short-circuit. For that reason, many people choose to make a 'hard-connection,' they eliminate the 3-wire plastic connector of the early design, and individually-solder the wires, using heat shrink tubing, and perhaps a plastic split-side piece of corrugated plastic wire loom protector over the splice joints.
I'd trace that light blue line to see what it's energizing. Looks like light blue is the neutral indicator circuit. However, if that's just a 'not of this wire loom' circuit and color, you really do need to trace it to see where it leads.