Equivalent to RequireComponent attribute for prefab reference?

Is there any way to add a component requirement to a prefab reference that is set in the inspector?
Essentially, I want to use the RequireComponent attribute on a GameObject reference rather than on a class.

Something like this:

public class Gun : MonoBehavior 
     [SerializeField][RequireComponent(typeof(Bullet)] GameObject bulletPrefab;

Well, as far as I know, no. But you can validate the prefab and see if you want to add a component onto it, like this:

GameObject prefab = null;

private void OnValidate()
    if(prefab.GetComponent<RandomClass>() == null)