public T @Nullable [] getSelectedElements(T[] a) {
    LinkedHashSet<T> list = getSelectedElementsList();
    if (list == null) return null;
    return list.toArray(a);
  }
public T @Nullable [] getSelectedElements(T[] a)