public Class<?> getType(ConfigVisitor visitor, ConfigVisitorNode previous) {
if (previous instanceof ValueConfig == false)
throw new IllegalArgumentException("Previous node is not a value config!");
ValueConfig vc = (ValueConfig) previous;
BeanInfo beanInfo = visitor.getBeanInfo();
Method m = beanInfo.findMethod(methodName, Configurator.getTypes(parameters));
return m.getParameterTypes()[vc.getIndex()];
}