It looks like this is mostly a copy of `findMatchingFunctions()`. We try hard to avoid copying and pasting code, because it makes the code harder to maintain if changes need to be made later. In this case, you should just add a flag to `findMatchingFunctions()` instead.