Add parameter to OnDrop

How do i add parameter to OnDrop?

using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEditorInternal.Profiling.Memory.Experimental;
using UnityEngine;
using UnityEngine.EventSystems;

public class ToolBarSlot : MonoBehaviour, IDropHandler
{
    ItemSO item;
    public void OnDrop(PointerEventData eventData, ItemSO item)
    {
        if (transform.childCount == 0)
        {
            if (Check(item) == true)
            {
                InventoryItem inventoryItem = eventData.pointerDrag.GetComponent<InventoryItem>();
                inventoryItem.parentAfterDrag = transform;
            }

        }
    }

    public bool Check(ItemSO item)
    {
        if (item.type == ItemType.Laser)
        {
            return true;
        }
        return false;
        
    }
}

Says IDropHandler does not implement interface member

I need to compare if item.type == ItemType.Laser

public class ItemSO : ScriptableObject
{
    public TileBase tile;
    public Sprite image;
    public ItemType type;
    public ActionType actionType;
    public Vector2Int range = new Vector2Int(5, 4);

    public bool stackable = false;
}


public enum ItemType
{
    Laser,
    Engine
}

public enum ActionType
{
    laser,
    engine
}

Found a solution

    public void OnDrop(PointerEventData eventData)
    {
        if (transform.childCount == 0)
        {
            InventoryItem inventoryItem = eventData.pointerDrag.GetComponent<InventoryItem>();
            if (inventoryItem.item.type == ItemType.Laser)
            {
                inventoryItem.parentAfterDrag = transform;
            }
        }
    }