@Nullable
  public static PyType getTypeFromTypeGuardLikeType(@NotNull PyFunction function, @NotNull TypeEvalContext context) {
    var returnType = getReturnTypeAnnotation(function, context);
    if (returnType instanceof PyStringLiteralExpression stringLiteralExpression) {
      returnType = PyUtil.createExpressionFromFragment(stringLiteralExpression.getStringValue(),
                                                       function.getContainingFile());
    }
    if (returnType instanceof PySubscriptionExpression subscriptionExpression) {
      var indexExpression = subscriptionExpression.getIndexExpression();
      if (indexExpression != null) {
        return Ref.deref(getType(indexExpression, context));
      }
    }
    return null;
  }
@Nullable
  public static PyType getTypeFromTypeGuardLikeType(@NotNull PyFunction function, @NotNull TypeEvalContext context)