@Override
  public PsiClassType @NotNull [] getExtendsListTypes() {
    final List<PsiClassType> result = new ArrayList<>();
    for (PsiType type : getBounds(InferenceBound.UPPER)) {
      if (type instanceof PsiClassType) {
        result.add((PsiClassType)type);
      }
    }
    return result.toArray(PsiClassType.EMPTY_ARRAY);
  }
@Override
  public PsiClassType @NotNull [] getExtendsListTypes()