private static <E> Object @NotNull [] createArrayAdd(Object @NotNull [] elements, E e) {
    int len = elements.length;
    Object[] newElements = Arrays.copyOf(elements, len + 1);
    newElements[len] = e;
    return newElements;
  }
private static <E> Object @NotNull [] createArrayAdd(Object @NotNull [] elements, E e)