void (@NotNull Project project, @NotNull List<IdeDocumentHistoryImpl.PlaceInfo> toRemove) { PsiManager psiManager = PsiManager.getInstance(project); List<PsiFile> files = ContainerUtil.mapNotNull(toRemove, o -> psiManager.findFile(o.getFile())); DeleteHandler.deletePsiElement(files.toArray(PsiElement.EMPTY_ARRAY), project, false); }