List<String> (@NotNull List<? extends VcsDirectoryMapping> mappings) { List<String> paths = new ArrayList<>(); for (VcsDirectoryMapping mapping : mappings) { if (mapping.isNoneMapping()) { continue; } if (!mapping.isDefaultMapping()) { paths.add(mapping.getDirectory()); } else { String basePath = myProject.getBasePath(); if (basePath != null) { paths.add(FileUtil.toSystemIndependentName(basePath)); } } } return paths; }