protected static function determineValidMethodName(DbDumper $dbDumper, string $methodName) : string
{
return collect([$methodName, 'set_' . $methodName])->first(function (string $methodName) use($dbDumper) {
return method_exists($dbDumper, $methodName);
}, '');
}