@Nullable
  private static PyTypingNewType getNewTypeFromStub(@NotNull PyTargetExpression target,
                                                    @Nullable PyTypingNewTypeStub stub,
                                                    @NotNull TypeEvalContext context) {
    if (stub == null) return null;
    final PyClassType type = getClassType(stub, context, target);
    return type != null ? new PyTypingNewType(type, stub.getName(), target) : null;
  }
@Nullable
  private static PyTypingNewType getNewTypeFromStub(@NotNull PyTargetExpression target,
                                                    @Nullable PyTypingNewTypeStub stub,
                                                    @NotNull TypeEvalContext context)