Make smart reference resolver aware of private classes and methods and
not warn about those.