check visibility with right 'from' for namespace members
while prioritizing members by visibility