boolean (DomElement element) { Class<DomElement> aClass = (Class<DomElement>)ClassUtil.getRawType(myChildDescription.getType()); final DomElement domElement = element.getParentOfType(aClass, false); return domElement != null && myCollectionElements.contains(domElement); }