public Set<BankAccount> getReplacingAccounts(BiFunction<BigInteger,BigInteger,BankAccount> generator) {
        Set<BankAccount> result = new HashSet<>();
        for (BankAccount account: accounts)
            result.add(generator.apply(account.getBalance().add(BigInteger.TEN),account.getCreditLimit()));
        return result;
    }