void (PsiClass psiClass, Set<? super PsiClass> classes, GlobalSearchScope scope) { classes.add(psiClass); for (PsiClass aClass : getChildren(psiClass, scope)) { if (!classes.contains(aClass)) { collectClassWithChildren(aClass, classes, scope); } } }