void () { if (!(IS_NASTRADAMUS_TEST_DISTRIBUTOR_ENABLED || IS_NASTRADAMUS_SHADOW_DATA_COLLECTION_ENABLED)) return; try { var testRunRequest = nastradamusClient.collectTestRunResults(); nastradamusClient.sendTestRunResults(testRunRequest, IS_NASTRADAMUS_TEST_DISTRIBUTOR_ENABLED); } catch (Exception e) { System.err.println("Unexpected error happened during sending test results to Nastradamus"); e.printStackTrace(); } }