I don't get the problem. You can have only a single implementation of selfRefer(). Since you hard-code the instance it refers to, there is only need for this one instance to be known to selfRefer(). Thus, you can declare, or even define, this single instance above selfRefer() and should have no problem.

What is it that you are doing where this fails?