void (final PsiClass aClass, final Set<PsiClass> processed, final PsiClassType... classesList) { for (PsiClassType element : classesList) { PsiClass resolved = element.resolve(); if (resolved != null && processed.add(resolved)) { getSubclasses(resolved).add(aClass); buildSubClassesMap(resolved, processed); } } }