public static VirtualFile @NotNull [] getRootsUnderVcs(@NotNull Project project,
                                                         @NotNull NewMappings newMappings,
                                                         @NotNull AbstractVcs vcs) {
    List<VirtualFile> mappings = newMappings.getMappingsAsFilesUnderVcs(vcs);

    final AbstractVcs.RootsConvertor convertor = vcs.getCustomConvertor();
    final List<VirtualFile> result = convertor != null ? convertor.convertRoots(new ArrayList<>(mappings)) : mappings;

    return filterAllowedRoots(project, result, vcs);
  }
public static VirtualFile @NotNull [] getRootsUnderVcs(@NotNull Project project,
                                                         @NotNull NewMappings newMappings,
                                                         @NotNull AbstractVcs vcs)