private static Method getCallbacksSetter(Class<?> type, String methodName) throws NoSuchMethodException {
    return type.getDeclaredMethod(methodName, Callback[].class);
  }
private static Method getCallbacksSetter(Class<?> type, String methodName)