Storages have 10000 hits, which is more than the 5000 hits you coded for in the search.
Storages and containers have structure.store.energy and structure.storeCapacity instead of structure.energy and structure.energyCapacity. (Check the API docs for this info.)
I'm not familiar with what Game.spawns.Spawn1||extentions is doing.