code: @Override
      public Account getAccountByName(String name) {
          for (Account account : accountMap.values()) {
              if (name.equals(account.getRemarkName())) {
                  return account;
              }
              if (name.equals(account.getNickName())) {
                  return account;
              }
          }
          return null;
      }
docs: 根据备注或昵称查找账户
  
  @param name
  @return