docs: @Restricted(NoExternalUse.class)
      public @Nullable ApiTokenProperty.TokenInfoAndStats getLegacyStatsOf(@Nonnull User user, @Nullable ApiTokenStore.HashedToken legacyToken) {
          ApiTokenProperty apiTokenProperty = user.getProperty(ApiTokenProperty.class);
          if (legacyToken != null) {
              ApiTokenStats.SingleTokenStats legacyStats = apiTokenProperty.getTokenStats().findTokenStatsById(legacyToken.getUuid());
              return new ApiTokenProperty.TokenInfoAndStats(legacyToken, legacyStats);
          }
          
          // in case the legacy token was revoked during the request
          return null;
      }