private boolean removeInvalidFilesFrom(@NotNull List<PlaceInfo> backPlaces) {
    return backPlaces
      .removeIf(info -> (info.myFile instanceof OptionallyIncluded &&
                         !((OptionallyIncluded)info.myFile).isIncludedInDocumentHistory(project)) ||
                        !info.myFile.isValid());
  }
private boolean removeInvalidFilesFrom(@NotNull List<PlaceInfo> backPlaces)