I use a 6" K&N, I have seen two four inchers stacked. Find a small kid and teach them to read measurements and close em in under the hood with a flashlight.
A better way would be to use a small telescoping magnetic pickup tool handle. Place it inside the lower so the handle is up and extended beyond the guesstimated hood height, close the hood to compress the handle, make sure it will fully compress instead of poking a hole in something
) and then do some math. Might even be easier ways, I laid a straight edge from fender to fender and just measured up to that. I still have enough room for a few more inches of filter. The center stud on the carb (Holley truck avenger) is about 3" taller than the 6" filter right now. But that is centerline, I'm not certain how that translates towards the edges where the filter lid would be. It really all depends on what intake and carb combo you have.