def __get_all_child_accounts_as_array(self, account: Account) -> List[Account]:
        """ Returns the whole tree of child accounts in a list """
        result = []
        # ignore placeholders ? - what if a brokerage account has cash/stocks division?
        # if not account.placeholder:
        # continue
        result.append(account)

        for child in account.children:
            sub_accounts = self.__get_all_child_accounts_as_array(child)
            result += sub_accounts

        return result
Returns the whole tree of child accounts in a list