return method.invoke(obj, invocationArgs(environment));
} catch (IllegalAccessException | InvocationTargetException e) {
throw new RuntimeException(e);
}
}
<BUG>@SneakyThrows</BUG>
private Object[] invocationArgs(DataFetchingEnvironment environment) {
<BUG>List result = new ArrayList();
</BUG>
Iterator envArgs = environment.getArguments().values().iterator();

return method.invoke(obj, invocationArgs(environment));
} catch (IllegalAccessException | InvocationTargetException e) {
throw new RuntimeException(e);
}
}
private Object[] invocationArgs(DataFetchingEnvironment environment) {
List<Object> result = new ArrayList<>();
Iterator envArgs = environment.getArguments().values().iterator();
