docs: boolean isCyclic(PartitionReplica[] oldReplicas, PartitionReplica[] newReplicas) {
          for (int i = 0; i < oldReplicas.length; i++) {
              final PartitionReplica oldAddress = oldReplicas[i];
              final PartitionReplica newAddress = newReplicas[i];
  
              if (oldAddress == null || newAddress == null || oldAddress.equals(newAddress)) {
                  continue;
              }
  
              if (isCyclic(oldReplicas, newReplicas, i)) {
                  return true;
              }
          }
          return false;
      }