Is there a way in Java reflection to call getMethod or some other one that won’t throw an exception if a method isn’t found? Maybe just return a null instead?
I’m doing a pass through an application to decrease expected exceptions and this seems like a possible candidate.
You can iterate over the getMethods() and return
nullif you don’t find a match.