EastNorth foundPoint = n.getEastNorth();
// project found node to snapping line
newEN = snapHelper.getSnapPoint(foundPoint);
// do not add new node if there is some node within snapping distance
double tolerance = Main.map.mapView.getDist100Pixel() * toleranceMultiplier;
if (foundPoint.distance(newEN) > tolerance) {
n = new Node(newEN); // point != projected, so we create new node
newNode = true;
}
} else { // n==null, no node found in clicked area
EastNorth mouseEN = Main.map.mapView.getEastNorth(e.getX(), e.getY());