void (AntDomCustomElement custom) { if (myElement.equals(custom.getDeclaringElement())) { final AntDomElement parent = custom.getParentOfType(AntDomElement.class, true); if (parent != null) { final Class type = parent.getChildDescription().getUserData(ELEMENT_IMPL_CLASS_KEY); if (type != null) { final AntIntrospector antIntrospector = AntIntrospector.getInstance(type); if (antIntrospector != null) { parents.add(new ClassIntrospectorAdapter(antIntrospector)); } } } } }