void (@NotNull PresentationData presentation) { super.myName = getNodeName(); // rebuild a node name used in #toString() Project project = getProject(); VirtualFile file = getVirtualFile(); String title = getTitle(); SimpleTextAttributes attributes = SimpleTextAttributes.REGULAR_ATTRIBUTES; if (node.getRootID() instanceof VirtualFile) { ProjectFileIndex index = getProjectFileIndex(project); if (index != null && file.equals(index.getContentRootForFile(file))) { attributes = SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES; } } String text = title != null ? title : toString(); presentation.setPresentableText(text); presentation.addText(text, attributes); Icon icon = CompoundIconProvider.findIcon(findFileSystemItem(file), 0); presentation.setIcon(icon == null || project == null ? icon : AbstractPsiBasedNode.patchIcon(project, icon, file)); decorate(presentation); }