How to access mesh from Scriptable Object directly?

I have scriptable object class as flows:
*
public class ItemObjectt : ScriptableObject
public GameObject prefab; // let’s say linked prefab is Flower
*
I’m trying to access mesh from this “Flower” from another script and assign in editor.
I can create public mesh and it will work(… = item.mesh). But wondering if I can simplify this somehow

I would assume it will look something like this:
*

    public ItemObjectt item;
            GetComponentInChildren<MeshFilter>().mesh = item.GetComponent(typeof(MeshFilter));

and

GetComponent<MeshCollider>().sharedMesh = item.GetComponent(typeof(MeshFilter));

I think I figured out this one. Works as I wanted. Not sure if it is the best way to code these things for the Editor =)

public ItemObjectt item; 

     
    var prefabmesh = item.prefab.GetComponent<MeshFilter>().sharedMesh;
    var prefabrend = item.prefab.GetComponent<Renderer>().sharedMaterial;

    GetComponentInChildren <Renderer>().sharedMaterial = prefabrend;
    EditorUtility.SetDirty(GetComponentInChildren<Renderer>());
    GetComponentInChildren<MeshFilter>().mesh = prefabmesh;
    EditorUtility.SetDirty(GetComponentInChildren<MeshFilter>());

    GetComponent<MeshCollider>().sharedMesh = prefabmesh;
    EditorUtility.SetDirty(GetComponent<MeshCollider>());