private void CloseItems(ref List <MyInventoryItem> itemsToClose)
 {
     foreach (MyInventoryItem itemToClose in itemsToClose)
     {
         MyInventory.CloseInventoryItem(itemToClose);
     }
     itemsToClose.Clear();
 }