Dropped the call to Method.getParameterCount() in favor of ….getParameterTypes().length as the former method was introduced in Java 8.
Dropped the call to Method.getParameterCount() in favor of ….getParameterTypes().length as the former method was introduced in Java 8.