void (final SMTestProxy.SMRootTestProxy testProxy, final TestTreeRenderer renderer) { IconInfo iconInfo = getIcon(testProxy, renderer.getConsoleProperties()); renderer.setIcon(iconInfo.getIcon()); String accessibleStatusText = renderer.getAccessibleStatus(); if (accessibleStatusText == null) accessibleStatusText = iconInfo.getStatusText(); renderer.setAccessibleStatusText(accessibleStatusText); final TestStateInfo.Magnitude magnitude = testProxy.getMagnitudeInfo(); final String text; final String presentableName = testProxy.getPresentation(); if (presentableName != null) { text = presentableName; } else if (magnitude == TestStateInfo.Magnitude.RUNNING_INDEX) { text = SmRunnerBundle.message("sm.test.runner.ui.tests.tree.presentation.labels.running.tests"); } else if (magnitude == TestStateInfo.Magnitude.TERMINATED_INDEX) { text = SmRunnerBundle.message("sm.test.runner.ui.tests.tree.presentation.labels.was.terminated"); } else { text = SmRunnerBundle.message("sm.test.runner.ui.tests.tree.presentation.labels.test.results"); } renderer.append(text, SimpleTextAttributes.REGULAR_ATTRIBUTES); final String comment = testProxy.getComment(); if (comment != null) { renderer.append(" (" + comment + ")", SimpleTextAttributes.GRAY_ATTRIBUTES); } }