code: public synchronized void regenerateTokenFromLegacyIfRequired(@Nonnull Secret newLegacyApiToken) {
          if(tokenList.stream().noneMatch(HashedToken::isLegacy)){
              deleteAllLegacyAndGenerateNewOne(newLegacyApiToken, true);
          }
      }
docs: Same as {@link #regenerateTokenFromLegacy(Secret)} but only applied if there is an existing legacy token.
  <p>
  Otherwise, no effect.