docs: @CheckForNull
    public ViewsSnapshotDto selectSnapshotBefore(String componentUuid, long date, DbSession dbSession) {
      return from(mapper(dbSession).selectSnapshotBefore(componentUuid, date))
        .first()
        .orNull();
    }