void (@NotNull SMTestProxy child) { if (myChildren == null) { myChildren = new CopyOnWriteArrayList<>(); } myChildren.add(child); // add printable // // add link to child's future output in correct place // actually if after this suite will obtain output // it will place it after this child and before future child addLast(child); // add child // //TODO reset children cache child.setParent(this); boolean printOwnContentOnly = this instanceof SMRootTestProxy && ((SMRootTestProxy)this).shouldPrintOwnContentOnly(); if (!printOwnContentOnly) { child.setPrinter(myPrinter); } if (myPreferredPrinter != null && child.myPreferredPrinter == null) { child.setPreferredPrinter(myPreferredPrinter); } }