plusAllEnclosedTypes

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

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