Additional functionality of "must" nodes on apoc.path.expandConfig

In apoc.path.expandConfig, whitenodes, and blacknodes can be specified.
In my case, in addition to white nodes, some nodes among whitenodes needs to be specified as "must" nodes, which must be included in the result.
What is the best way to realize this?