This question is probably an extension of this question (but as that is many years old, maybe someone has a solution by now). Suppose I have the following setup: