@Override
  public <T> @NotNull Object deserializeList(@Nullable Object currentValue, @NotNull List<? extends T> elements, @NotNull DomAdapter<T> adapter) {
    assert currentValue != null;
    if (adapter != JdomAdapter.INSTANCE) {
      throw new UnsupportedOperationException("XmlElement is not supported by JDOMElementBinding");
    }

    if (accessor.getValueClass().isArray()) {
      //noinspection SuspiciousToArrayCall
      accessor.set(currentValue, elements.toArray(new Element[0]));
    }
    else {
      accessor.set(currentValue, elements.get(0));
    }
    return currentValue;
  }
@Override
  public <T> @NotNull Object deserializeList(@Nullable Object currentValue, @NotNull List<? extends T> elements, @NotNull DomAdapter<T> adapter)