code: public boolean isEveryOwnedOutputSpent(TransactionBag transactionBag) {
          for (TransactionOutput output : outputs) {
              if (output.isAvailableForSpending() && output.isMineOrWatched(transactionBag))
                  return false;
          }
          return true;
      }
docs: Returns false if this transaction has at least one output that is owned by the given wallet and unspent, true
  otherwise.