code: public void setNickname(User user, String nickname) {
          nicknames.compute(user.getId(), (key, value) -> nickname);
      }
docs: Sets the nickname of the user.
  
  @param user The user.
  @param nickname The nickname to set.