T () { final DomElement parent = myParent.retrieveDomElement(); if (parent == null) return null; final List<? extends DomElement> list = myDescr.getValues(parent); int i = 0; for (final DomElement element : list) { final String s = element.getGenericInfo().getElementName(element); if (myName.equals(s)) { if (i == myIndex) { //noinspection unchecked return (T)element; } i++; } } return null; }