if (typeDef instanceof XSDComplexTypeDefinition) {
XSDComplexTypeDefinition complexType = (XSDComplexTypeDefinition) typeDef;
XSDParticle particle = (XSDParticle) complexType.getContent();
set.addAll(getGlobalDependencies(particle));
EList attributes = complexType.getAttributeContents();
for (int i = 0; i < attributes.size(); i++) {
XSDAttributeUse attribute = (XSDAttributeUse) attributes.get(i);
XSDAttributeDeclaration attDecl = attribute.getAttributeDeclaration();
set.addAll(getGlobalDependencies(attDecl));
}
} else if (typeDef instanceof XSDSimpleTypeDefinition) {
XSDSimpleTypeDefinition simpleType = (XSDSimpleTypeDefinition) typeDef;