public void addCollection(MatchableCollection mc) { boolean notm = false; collections.add(mc); if (numRac > 0 && numUpl > 0) mc.setMatchable(); else notm = true; if (mc.isRacunTip()) ++numRac; else ++numUpl; if (notm && numRac > 0 && numUpl > 0) setMatchable(); }