void (@NotNull PresentationData presentationData, SimpleTextAttributes mainAttributes, SimpleTextAttributes commentAttributes) { presentationData.setIcon(AllIcons.Nodes.CopyOfFolder); if (myFile == null || !myFile.isDirectory()) { mainAttributes = SimpleTextAttributes.ERROR_ATTRIBUTES; final VirtualFile parentFile = LocalFileSystem.getInstance().findFileByPath(FileUtil.toSystemIndependentName(mySourcePath)); if (parentFile == null) { commentAttributes = SimpleTextAttributes.ERROR_ATTRIBUTES; } } presentationData.addText(JavaCompilerBundle.message("node.text.0.directory.content", mySourceFileName), mainAttributes); presentationData.addText(" (" + mySourcePath + ")", commentAttributes); }