List<VirtualFile> () { List<VirtualFile> result = new ArrayList<>(); for (VcsDirectoryMapping mapping : myPlManager.getDirectoryMappings(myVcs)) { if (mapping.isDefaultMapping()) { if (myVcs.equals(myPlManager.getVcsFor(myProject.getBaseDir()))) { result.add(myProject.getBaseDir()); } } else { VirtualFile newFile = LocalFileSystem.getInstance().refreshAndFindFileByPath(mapping.getDirectory()); if (newFile != null) { result.add(newFile); } else { LOG.info("Can not find virtual file for root: " + mapping.getDirectory()); } } } return result; }