So far I have created custom attribute
my_custom_attribute and I want to pass this attribute inside
Magento/CatalogInventory/Model/StockStateProvider.php and call it like
$stockItem->getIsInStock() but I want to get it like
$stockItem-getMyAttribute(). Can someone explain me how to do it? Can't really understand how to set this data to get my attribute there
Thank you a lot!