public static void main(String[] args) throws IndexOutOfBoundsException, VstupException {
        MathList<BoundingBox> list = new MathList();
        list.fillColection("2x");
        System.out.println(list);
        Expr p = list.fromMathList();
        list.removeAll(list);
        list.addAll(p.getAllBoundingBoxs());
        for (int i = 0; i < list.size(); i++) {
            if (list.get(i).getWidth() == 1 && list.get(i).height ==1) {
                System.out.print(list.get(i));
            }
        }
    }