code: @Override
  	public void addValidator(final FieldValidator validator) {
  		InputModel model = getOrCreateComponentModel();
  
  		if (model.validators == null) {
  			model.validators = new ArrayList<>();
  		}
  
  		validator.setInputField(this);
  		model.validators.add(validator);
  		// possible source of memory leaks
  		MemoryUtil.checkSize(model.validators.size(), this.getClass().getSimpleName());
  	}
docs: {@inheritDoc}