if (inventory.getStackInSlot(SLOT_CAN) != null) {
FluidContainerData container = LiquidHelper.getLiquidContainer(inventory.getStackInSlot(SLOT_CAN));
if (container != null) {
StandardTank tank = null;
if (heatingTank.accepts(container.fluid.getFluid()))
tank = heatingTank;
else if (fuelTank.accepts(container.fluid.getFluid()))
tank = fuelTank;