Vorticity in peripheral collisions at the Facility for Antiproton and Ion Research and at the JINR Nuclotron-based Ion Collider fAcility