}
public Set<TypeDef> collectDerivedTypes(ExpandedName baseType) {
this.baseType = baseType;
derivedTypes = Sets.newHashSet();
SimpleNamespaceContext nsContext = new SimpleNamespaceContext();
nsContext.add("xs", XMLConstants.W3C_XML_SCHEMA_NS_URI);
String xql = "./xs:complexType/xs:complexContent/xs:extension";
for (Element xsd : schemas) {
setCurrentTargetNamespace(xsd);
for (Element type : Elements.matching(xql, xsd, nsContext)) {
processPossibleMatch(type);