core/play/src/main/java/play/libs/reflect/MemberUtils.java
static int compareMethodFit(final Method left, final Method right, final Class<?>[] actual) {
    return compareParameterTypes(Executable.of(left), Executable.of(right), actual);
  }
static int compareMethodFit(final Method left, final Method right, final Class<?>[] actual) {
    return compareParameterTypes(Executable.of(left), Executable.of(right), actual);
  }
static int compareMethodFit ( final Method left , final Method right , final Class < ? > [ ] actual ) { return compareParameterTypes ( Executable . of ( left ) , Executable . of ( right ) , actual ) ; }
Compares the relative fitness of two Methods in terms of how well they match a set of runtime
parameter types, such that a list ordered by the results of the comparison would return the
best match first (least).

@param left the "left" Method
@param right the "right" Method
@param actual the runtime parameter types to match against {@code left}/{@code right}
@return int consistent with {@code compare} semantics
@since 3.5
Compares the relative fitness of two Methods in terms of how well they match a set of runtime parameter types such that a list ordered by the results of the comparison would return the best match first ( least ) .