@Override
  public @Nullable PsiType getType() {
    final PsiTypeElement castType = getCastType();
    if (castType == null) return null;
    return PsiUtil.captureToplevelWildcards(castType.getType(), this);
  }
@Override
  public @Nullable PsiType getType()