void (final SMTestProxy.SMRootTestProxy testProxy, final TestTreeRenderer renderer) { final TestStateInfo.Magnitude magnitude = testProxy.getMagnitudeInfo(); if (magnitude == TestStateInfo.Magnitude.RUNNING_INDEX) { if (!testProxy.getChildren().isEmpty()) { formatRootNodeWithChildren(testProxy, renderer); } else { IconInfo iconInfo = getIcon(testProxy, renderer.getConsoleProperties()); renderer.setIcon(iconInfo.getIcon()); renderer.setAccessibleStatusText(iconInfo.getStatusText()); renderer.append(SmRunnerBundle.message("sm.test.runner.ui.tests.tree.presentation.labels.instantiating.tests"), SimpleTextAttributes.REGULAR_ATTRIBUTES); } } else if (magnitude == TestStateInfo.Magnitude.NOT_RUN_INDEX) { renderer.setIcon(PoolOfTestIcons.NOT_RAN); renderer.append(SmRunnerBundle.message( "sm.test.runner.ui.tests.tree.presentation.labels.not.test.results"), SimpleTextAttributes.ERROR_ATTRIBUTES); } else if (magnitude == TestStateInfo.Magnitude.TERMINATED_INDEX) { renderer.setIcon(PoolOfTestIcons.TERMINATED_ICON); renderer.append(SmRunnerBundle.message( "sm.test.runner.ui.tests.tree.presentation.labels.was.terminated"), SimpleTextAttributes.REGULAR_ATTRIBUTES); } else if (magnitude == TestStateInfo.Magnitude.PASSED_INDEX) { renderer.setIcon(PoolOfTestIcons.PASSED_ICON); renderer.append(SmRunnerBundle.message( "sm.test.runner.ui.tests.tree.presentation.labels.all.tests.passed"), SimpleTextAttributes.REGULAR_ATTRIBUTES); } else if (magnitude == TestStateInfo.Magnitude.IGNORED_INDEX && !testProxy.hasErrors()) { renderer.setIcon(PoolOfTestIcons.IGNORED_ICON); renderer.append(SmRunnerBundle.message( "sm.test.runner.ui.tests.tree.presentation.labels.all.but.ignored.passed"), SimpleTextAttributes.REGULAR_ATTRIBUTES ); } else { if (!testProxy.getChildren().isEmpty()) { // some times test proxy may be updated faster than tests tree // so let's process such situation correctly formatRootNodeWithChildren(testProxy, renderer); } else { renderer.setIcon(PoolOfTestIcons.NOT_RAN); renderer.append(testProxy.isTestsReporterAttached() ? SmRunnerBundle.message("sm.test.runner.ui.tests.tree.presentation.labels.no.tests.were.found") : SmRunnerBundle.message("sm.test.runner.ui.tests.tree.presentation.labels.test.reporter.not.attached"), SimpleTextAttributes.ERROR_ATTRIBUTES); } } }