private void buildSubClassesMapForList(final PsiClassType[] classesList, GrTypeDefinition aClass) {
    for (PsiClassType element : classesList) {
      PsiClass resolved = element.resolve();
      if (resolved instanceof GrTypeDefinition superClass) {
        getSubclasses(superClass).add(aClass);
        buildSubClassesMap(superClass);
      }
    }
  }
private void buildSubClassesMapForList(final PsiClassType[] classesList, GrTypeDefinition aClass)