`optReqs[i]` is the name of the optional module and can be used to call `_canBeAttached()` and to push it into the `requires` structure.