Object (@Nullable Object context, @NotNull List<XmlElement> elements) { int size = elements.size(); Object[] result = ArrayUtil.newArray(itemType, size); for (int i = 0; i < size; i++) { result[i] = deserializeItem(elements.get(i), context); } return result; }