private void renderFile(final VirtualFile file,
final SimpleTextAttributes textAttributes,
@Nullable final String toolTip) {
final PresentationData presentation = getPresentation();
presentation.setTooltip(toolTip);
presentation.addText(myFilePointer.getFileName(), textAttributes);
if (file != null) {
presentation.setLocationString(file.getPath());
}
}