public static boolean isHavePositionCloseToCenter(Polygon polygon, Integer distance) {
        if (distance == null)
            return false;

        for (Position position : polygon.getPositions()) {
            Position centerPosition = MathService.positionOfCenter(polygon);
//            if (position.getDistanceTo(centerPosition) < distance)
            if (Math.abs(position.getX() - centerPosition.getX()) < distance*4 &&
                Math.abs(position.getY() - centerPosition.getY()) < distance*4)
                return true;
        }
        return false;
    }