void (@NotNull JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { Object userObject = ((DefaultMutableTreeNode)value).getUserObject(); if (!(userObject instanceof MavenArchetype info)) return; if (leaf) { append(info.artifactId, SimpleTextAttributes.GRAY_ATTRIBUTES); append(":" + info.version, SimpleTextAttributes.REGULAR_ATTRIBUTES); } else { append(info.groupId + ":", SimpleTextAttributes.GRAY_ATTRIBUTES); append(info.artifactId, SimpleTextAttributes.REGULAR_ATTRIBUTES); } }