public static void swap(boolean @NotNull [] array, int i1, int i2) {
    boolean t = array[i1];
    array[i1] = array[i2];
    array[i2] = t;
  }
public static void swap(boolean @NotNull [] array, int i1, int i2)