Apparently there's no common interface for those things :-\ so I've put just `object|null`