void (@NotNull LocalChangeList changeList, @NotNull ColoredTreeCellRenderer renderer, boolean selected, boolean expanded, boolean hasFocus) { if (!Registry.is("show.affected.tests.in.changelists")) return; if (!ShowAffectedTestsAction.isEnabled(myProject)) return; if (changeList.getChanges().isEmpty()) return; renderer.append(", ", SimpleTextAttributes.GRAYED_ATTRIBUTES); renderer.append(JavaCompilerBundle.message("test.discovery.find.affected.tests"), new SimpleTextAttributes(STYLE_UNDERLINE, NamedColorUtil.getInactiveTextColor()), (Runnable)() -> { DataContext dataContext = DataManager.getInstance().getDataContext(renderer.getTree()); Change[] changes = changeList.getChanges().toArray(Change.EMPTY_CHANGE_ARRAY); ShowAffectedTestsAction.showDiscoveredTestsByChanges(myProject, changes, changeList.getName(), dataContext); }); }