Maybe we don't need it anymore.
When I comment out that block nothing seems to change.
And we have:
// Circle to show snap area
RS_Circle *circle=new RS_Circle(nullptr, RS_CircleData(snapCoord, 4/graphicView->getFactor().x));
circle->setPen(circle_pen);
container->addEntity(circle);