improved algo for differentiating between getter and setter in non-public lookup