private @Nullable VcsDirectoryMapping getDirectoryMappingFor(@Nullable VirtualFile file) {
    if (file == null || myProject.isDisposed()) return null;

    NewMappings.MappedRoot root = myMappings.getMappedRootFor(file);
    return root != null ? root.mapping : null;
  }
private @Nullable VcsDirectoryMapping getDirectoryMappingFor(@Nullable VirtualFile file)