A protection system for protecting a permanent magnet generator with a plurality of stator windings, the protection system comprising: a circuit breaker connected to the generator through a set of power cables, and being arranged for disconnecting the generator from an electrical grid, wherein the circuit breaker is not included as part of the stator windings; a protection relay; and at least one measurement sensor for measuring current, wherein each of said stator windings has a first end and a second end, and wherein: - if said stator windings are connected in a wye coupling, the stator windings are, in a set of three stator windings, commonly coupled in a star point at the first end of each of the stator windings, and - the at least one measurement sensor is arranged for measuring current in the stator windings at the star point end of the stator windings and for communicating the measured current to the protection relay, whereas - if said stator windings are connected in a delta coupling, the stator windings are, in a set of three stator windings, commonly coupled to each other in a ring connection, and - the at least one measurement sensor is arranged for measuring current in the ring connection of the stator windings and for communicating the measured current to the protection relay, characterized in that the protection relay is configured to communicate with the circuit breaker and to ensure that the circuit breaker is tripped in the event that the protection relay determines that the measured current exceeds a threshold so as to disconnect the generator from the electrical grid. a circuit breaker connected to the generator through a set of power cables, and being arranged for disconnecting the generator from an electrical grid, wherein the circuit breaker is not included as part of the stator windings; a protection relay; and at least one measurement sensor for measuring current, wherein each of said stator windings has a first end and a second end, and wherein: - if said stator windings are connected in a wye coupling, the stator windings are, in a set of three stator windings, commonly coupled in a star point at the first end of each of the stator windings, and - the at least one measurement sensor is arranged for measuring current in the stator windings at the star point end of the stator windings and for communicating the measured current to the protection relay, whereas - if said stator windings are connected in a delta coupling, the stator windings are, in a set of three stator windings, commonly coupled to each other in a ring connection, and - the at least one measurement sensor is arranged for measuring current in the ring connection of the stator windings and for communicating the measured current to the protection relay, characterized in that - if said stator windings are connected in a wye coupling, the stator windings are, in a set of three stator windings, commonly coupled in a star point at the first end of each of the stator windings, and - the at least one measurement sensor is arranged for measuring current in the stator windings at the star point end of the stator windings and for communicating the measured current to the protection relay, whereas - if said stator windings are connected in a delta coupling, the stator windings are, in a set of three stator windings, commonly coupled to each other in a ring connection, and - the at least one measurement sensor is arranged for measuring current in the ring connection of the stator windings and for communicating the measured current to the protection relay, characterized in that the protection relay is configured to communicate with the circuit breaker and to ensure that the circuit breaker is tripped in the event that the protection relay determines that the measured current exceeds a threshold so as to disconnect the generator from the electrical grid.