code: public List<TransactionOutput> getWalletOutputs(TransactionBag transactionBag){
          List<TransactionOutput> walletOutputs = new LinkedList<>();
          for (TransactionOutput o : outputs) {
              if (!o.isMineOrWatched(transactionBag)) continue;
              walletOutputs.add(o);
          }
  
          return walletOutputs;
      }
docs: <p>Returns the list of transacion outputs, whether spent or unspent, that match a wallet by address or that are
  watched by a wallet, i.e., transaction outputs whose script's address is controlled by the wallet and transaction
  outputs whose script is watched by the wallet.</p>
  
  @param transactionBag The wallet that controls addresses and watches scripts.
  @return linked list of outputs relevant to the wallet in this transaction