private String getExpectedChildType(AbstractMemberMetaData dependent) {
if (dependent.getCollection() != null) {
CollectionMetaData cmd = dependent.getCollection();
return cmd.getElementType();
} else if (dependent.getArray() != null) {
ArrayMetaData amd = dependent.getArray();
return amd.getElementType();
}
return dependent.getTypeName();
}