void (@NotNull PresentationData presentation) { super.update(presentation); boolean isProjectDependency = myDependencyNode instanceof ProjectDependencyNode || myReferencedNode instanceof ProjectDependencyNode; presentation.setIcon(isProjectDependency ? getUiAware().getProjectIcon() : AllIcons.Nodes.PpLib); String tooltip; if (myReferencedNode != null) { tooltip = ExternalSystemBundle.message("external.system.view.nodes.dependency_reference_node_tooltip"); } else { if (myDependencyNode instanceof FileCollectionDependencyNode) { String path = ((FileCollectionDependencyNode)myDependencyNode).getPath(); tooltip = StringUtil.join(path.split(File.pathSeparator), s -> Strings.escapeXmlEntities(s) + "<br/>" , ""); } else { tooltip = null; } } setNameAndTooltip(presentation, getName(), tooltip, (String)null); }