void (PsiClass aClass) { if (aClass instanceof GrTypeDefinition) { final GrExtendsClause extendsList = ((GrTypeDefinition)aClass).getExtendsClause(); if (extendsList != null) { buildSubClassesMapForList(extendsList.getReferencedTypes(), (GrTypeDefinition)aClass); } final GrImplementsClause implementsList = ((GrTypeDefinition)aClass).getImplementsClause(); if (implementsList != null) { buildSubClassesMapForList(implementsList.getReferencedTypes(), (GrTypeDefinition)aClass); } } }