No, It is Immpossible. You are looking for backlinks, but if necessary, we must create them in the code.
If you want to collect all referrers in B, you can do this with the constructor or with the factory (pattern) that creates B. I will show the factory:
public class B { private static Set<? extends Object> referencers = new HashSet<? extends Object>(); private B(){}
source share