getAllEnclosedTypes

open fun TypeElement.getAllEnclosedTypes(filter: (TypeElement) -> Boolean = { true }): List<TypeElement>

Returns all enclosed type (direct and indirect) to the list of TypeElements