void (PsiTypeElement element, TokenConsumer consumer) { final List<PsiTypeElement> subTypes = PsiTreeUtil.getChildrenOfTypeAsList(element, PsiTypeElement.class); for (PsiTypeElement subType : subTypes) { tokenize(subType, consumer); } }