@Nullable
  public static PyVariadicType getUnpackedType(@NotNull PsiElement element, @NotNull TypeEvalContext context) {
    Ref<@Nullable PyType> typeRef = getTypeFromStarExpression(element, context);
    if (typeRef == null) {
      typeRef = getTypeFromUnpackOperator(element, context);
    }
    if (typeRef == null) {
      return null;
    }
    var expressionType = typeRef.get();
    if (expressionType instanceof PyTupleType tupleType) {
      return new PyUnpackedTupleTypeImpl(tupleType.getElementTypes(), tupleType.isHomogeneous());
    }
    if (expressionType instanceof PyTypeVarTupleType typeVarTupleType) {
      return typeVarTupleType;
    }
    return null;
  }
@Nullable
  public static PyVariadicType getUnpackedType(@NotNull PsiElement element, @NotNull TypeEvalContext context)