code: protected function createValidator(
          array $data,
          array $rules,
          array $messages = [],
          array $customAttributes = []
      ): ValidatorInterface
      {
          return $this->factory->createDeleteValidator($data, $rules, $messages, $customAttributes);
      }
docs: Create a generic validator.
  
  @param array $data
  @param array $rules
  @param array $messages
  @param array $customAttributes
  @return ValidatorInterface