public static boolean isParamSpec(@NotNull PyExpression parametersExpr, @NotNull TypeEvalContext context) {
    final var resolveContext = PyResolveContext.defaultContext(context);
    return PyUtil.multiResolveTopPriority(parametersExpr, resolveContext).stream().anyMatch(it -> {
      if (!(it instanceof PyTypedElement)) return false;
      final var type = context.getType((PyTypedElement)it);
      return isParamSpec(type);
    });
  }
public static boolean isParamSpec(@NotNull PyExpression parametersExpr, @NotNull TypeEvalContext context)