The wire attached to the top of the filter header is for the fuel heater.
To remove it you have to remove the header, then go at it from the underside.
Large nut around the filter mounting pipe comes off, the the heater will pull down and the wire to the connector can be seen.
Push the connector down into the header.
Two O rings if I remember right, but I don't remember the size.