public final E @NotNull [] toArray(E @NotNull [] array) {
    if (this == EMPTY) return array;
    E single = asElement();
    if (single != null) return Collections.singletonList(single).toArray(array);
    return ContainerUtil.newArrayList(this).toArray(array);
  }
public final E @NotNull [] toArray(E @NotNull [] array)