Magnetic topology transitions in collisionless plasmas