How to know if a module was required in a vm or an actor?

If the module has any functions you can pass a bool, true would mean you are in parallel mode and false means you wouldn’t, and your functions could do something depending on that value