/**
  * @param string $type
  *
  * @return null|string
  */
 private final function getEventMethodSearchRegex($type)
 {
     $constant = sprintf('%s::%s', EntityEventInterface::INTERFACE_NAME, strtoupper(StringTransform::pascalToSnakeCase($type)));
     return defined($constant) ? sprintf('{^event%s.+}', ucfirst(constant($constant))) : null;
 }