You can't do it like that, the getMethod needs the number of parameters.
What you could use is getMethods or getDeclaredMethods, depending what you're looking for, and match any of them with the name you want.
You could get more than 1 of them matching the name but with different parameters.
getMethods will
Returns an array containing Method objects reflecting all the public member methods of the class or interface represented by this Class object, including those declared by the class or interface and those inherited from superclasses and superinterfaces
while getDeclaredMethods will
Returns an array of Method objects reflecting all the methods declared by the class or interface represented by this Class object. This includes public, protected, default (package) access, and private methods, but excludes inherited methods.
getMethod(...)as well.