separate functions for Methods and Annotations parent lookup