Magento 2 setting product stock

Can you please help me on setting stock programmatically for already existing product. I have a Magento 2.3.5-p1 instance, so StockRegistryInterface, StockItemInterface, setStockData method of productRepository and some other methods…