private @NotNull List<MappedRoot> getCachedMappedRootsIfNeeded(@NotNull List<VcsDirectoryMapping> mappings) {
    VcsDirectoryMapping defaultMapping = ContainerUtil.find(mappings, it -> it.isDefaultMapping());
    if (defaultMapping == null) return Collections.emptyList();

    AbstractVcs vcs = getMappingsVcs(defaultMapping);
    if (vcs == null) return Collections.emptyList();

    List<String> oldMappings = VcsDirectoryMappingCache.getInstance(myProject).getMappings(defaultMapping.getVcs());
    return ContainerUtil.mapNotNull(oldMappings, path -> {
      VirtualFile root = LocalFileSystem.getInstance().findFileByPath(path);
      return root != null ? new MappedRoot(vcs, defaultMapping, root) : null;
    });
  }
private @NotNull List<MappedRoot> getCachedMappedRootsIfNeeded(@NotNull List<VcsDirectoryMapping> mappings)