Implement getPermittedSubclasses
#338
+52
−0
Merged
getPermittedSubclasses
#338