void (Printable printable) { if (myTreeBuildBeforeStart) { int idx = 0; synchronized (myNestedPrintables) { for (Printable proxy : myNestedPrintables) { if (proxy instanceof SMTestProxy && !((SMTestProxy)proxy).isFinal()) { break; } idx++; } } insert(printable, idx); } else { addLast(printable); } }