List<PresentableFileInfo> (List<? extends FileInfo> fileInfos) { return ContainerUtil.map(fileInfos, fileInfo -> { TargetPresentationBuilder builder = TargetPresentation.builder(fileInfo.getFile().getPresentableName()) .icon(VirtualFilePresentation.getIcon(fileInfo.getFile())) .presentableText(fileInfo.getFile().getPresentableName()); VirtualFile vfParent = fileInfo.getFile().getParent(); if (vfParent != null) builder = builder.locationText(vfParent.getPresentableUrl()); return new PresentableFileInfo(fileInfo.getFile(), builder.presentation(), myProject); }); }