class ListKeyIndexBuilder extends AbstractDataBuilder {

    private Integer getListIndexInKeys(final Class<?>[] keyMethodParamTypes, final Method targetMethod) {
        Integer listIndexInKeys = null;
        for (int i = 0; i < keyMethodParamTypes.length; i++) {
            if (isList(keyMethodParamTypes[i])) {
                if (listIndexInKeys != null) {
                    throw new InvalidAnnotationException(
                            "There are more than one method's parameter annotated by @ParameterValueKeyProvider that is list "
                                    + targetMethod.toString());
                }
                listIndexInKeys = i;
            }
        }

        return listIndexInKeys;
    }

}