How get voxels (4x4x4 Region3) which are intersected with BrushPart?

Hello. I’m trying to make my plugin. But the problem is that IDK how get voxels which intersect with brush:
image
(Green squares are intersected, red are not.)
Can someone give me an idea how achieve this?