private void removeModelFromServer(int num) {
        //todo: переделать, блджад, весь этот bullshit
        int modelNumber = 0;
        while (modelNumber < models.size()) {
            if (models.get(modelNumber).getIsComplex()) {
                ComplexModel c = (ComplexModel) models.get(modelNumber);
                for (int i = 0; i < c.getSize(); i++) {
                    if (modelNumber == num) {
                        c.getModel(i).setIsNoNeedMore();
                        return;
                    }
                    modelNumber++;
                }
                c.recalculateModels();
            } else {
                if (modelNumber == num) {
                    models.get(modelNumber).setIsNoNeedMore();
                    return;
                }
                modelNumber++;
            }
        }
    }