@Contract("null -> false")
  public static boolean isOptional(@Nullable PsiType type) {
    return isOptional(PsiUtil.resolveClassInClassTypeOnly(type));
  }
@Contract("null -> false")
  public static boolean isOptional(@Nullable PsiType type)