void (JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (!(value instanceof CheckedTreeNode)) return; Object userObject = ((CheckedTreeNode)value).getUserObject(); if (!(userObject instanceof ArtifactDependencyNode node)) return; Artifact artifact = node.getArtifact(); boolean rejected = node.isRejected(); @NlsSafe final String groupArtifactFragment = artifact.getGroupId() + ":" + artifact.getArtifactId(); getTextRenderer().append(groupArtifactFragment, !rejected ? SimpleTextAttributes.REGULAR_ATTRIBUTES : STRIKEOUT_ATTRIBUTES, true); @NlsSafe final String versionFragment = ":" + artifact.getVersion(); getTextRenderer().append(versionFragment, !rejected ? SimpleTextAttributes.GRAYED_ATTRIBUTES : STRIKEOUT_GRAYED_ATTRIBUTES, true); setToolTipText(rejected ? JavaUiBundle.message("tooltip.text.dependency.was.rejected") : null); }