fix for method references reporting if these are in a function that is
part of an argument of a function call