void () { if (myState.isFinal()) { // we shouldn't fire new printable because final state // has been already fired return; } if (!isSuite()) { // if isn't in other finished state (ignored, failed or passed) myState = TestPassedState.INSTANCE; } else { //Test Suite myState = determineSuiteStateOnFinished(); } // prints final state additional info fireOnNewPrintable(myState); }