How to find where an action is triggered? [closed]

In WooCommerce (my version v6.1.1) there is a file called /woocommerce/templates/checkout/thankyou.php and in line 79 you have trigger with dynamic payment method name so there is a place when each payment method do their magic

<?php do_action( 'woocommerce_thankyou_' . $order->get_payment_method(), $order->get_id() ); ?>

And answering your questions:

  1. The opposite. Where is add_action there is a corresponding do_action but i can be named dynamically just like we see it example above
  2. There is no 100% way to find each do_action because all hook names depends on creativity of developer. So i can be hard to find at first glance just like example above