private void collectAllMasses() {
        for (Assembly a : getModel().getAssemblies()) {
            for (Mass m : a.getMasses()) {
                myMassesToAssembly.put(m, a);
            }
        }
    }