private void removeMassesInOwnSprings(Mass involvedMass, List<Mass> masses) {
        for (int i = masses.size() - 1; i >= 0; i--) {
            Mass candidate = masses.get(i);

            if (involvedMass.isConnected(grammar.getGraph(), candidate)) {
                masses.remove(i);
            }
        }
    }