public static <T> void rotateRight(T @NotNull [] array, int i1, int i2) {
    T t = array[i2];
    System.arraycopy(array, i1, array, i1 + 1, i2 - i1);
    array[i1] = t;
  }
public static <T> void rotateRight(T @NotNull [] array, int i1, int i2)