docs: @SuppressWarnings("unchecked")
      public T[] nextPermutationAsArray()
      {
          T[] permutation = (T[]) Array.newInstance(elements.getClass().getComponentType(),
                                                    permutationIndices.length);
          return nextPermutationAsArray(permutation);
      }