public static Method bestMethod ( Method [ ] methods , Class < ? > [ ] argTypes ) throws AmbiguousMethodMatchException { try { return best ( methods , collectSignatures ( methods ) , collectVarArgs ( methods ) , argTypes ) ; } catch ( AmbiguousSignatureMatchException e ) { throw new AmbiguousMethodMatchException ( e , methods ) ; } }
Selects the best method for the given argument types .