void (@NotNull JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (value instanceof DefaultMutableTreeNode) { MavenProject mavenProject = (MavenProject)((DefaultMutableTreeNode)value).getUserObject(); value = projectsNameMap.get(mavenProject); setIcon(MavenIcons.MavenProject); } super.customizeCellRenderer(tree, value, selected, expanded, leaf, row, hasFocus); }