public static PsiClass @NotNull [] getSupers(GrTypeDefinition grType, boolean includeSynthetic) {
    PsiClassType[] superTypes = grType.getSuperTypes(includeSynthetic);
    List<PsiClass> result = new ArrayList<>();
    for (PsiClassType superType : superTypes) {
      PsiClass superClass = superType.resolve();
      if (superClass != null) {
        result.add(superClass);
      }
    }

    return result.toArray(PsiClass.EMPTY_ARRAY);
  }
public static PsiClass @NotNull [] getSupers(GrTypeDefinition grType, boolean includeSynthetic)