HSEARCH-1637

 - https://hibernate.atlassian.net/browse/HSEARCH-1637

FWIW, in HV/OGM we've a static helper which shortens this kind of check into this:

    Contracts.assertParameterNotNull( provider, "provider" );