# instead check if the inventory's holder (inventory.getHolder()) is an instance of your custom InventoryHolder