private static boolean isInsideInSameHorizontalSpace(Positioned a, Positioned b)
    {
        return  a.leftBorder() == b.leftBorder() &&
                a.rightBorder() == b.rightBorder() &&
                    (pointInside(a, (b.leftBorder() + b.rightBorder()) / 2, b.topBorder(), true) ||
                    pointInside(a, (b.leftBorder() + b.rightBorder()) / 2, b.bottomBorder(), true));
    }