void (@NotNull JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (value instanceof DiscoveredTestsTreeModel.Node node) { setIcon(node.getIcon()); String name = node.getName(); assert name != null; append(name); if (node instanceof DiscoveredTestsTreeModel.Node.Clazz) { String packageName = ((DiscoveredTestsTreeModel.Node.Clazz)node).getPackageName(); if (packageName != null) { append(FontUtil.spaceAndThinSpace() + packageName, SimpleTextAttributes.GRAYED_ATTRIBUTES); } int testMethodCount = myModel.getChildren(value).size(); append(JavaCompilerBundle.message("affected.tests.counts", testMethodCount, testMethodCount == 1 ? 0 : 1), SimpleTextAttributes.GRAYED_ATTRIBUTES); } else if (node instanceof DiscoveredTestsTreeModel.Node.Method) { boolean isParametrized = !((DiscoveredTestsTreeModel.Node.Method)node).getParameters().isEmpty(); if (isParametrized) { append(FontUtil.spaceAndThinSpace() + JavaCompilerBundle.message("test.discovery.parametrized"), SimpleTextAttributes.GRAYED_ATTRIBUTES); } } SpeedSearchUtil.applySpeedSearchHighlighting(tree, this, true, false); } }