boolean (@NotNull VcsDirectoryMapping mapping) { if (mapping.isDefaultMapping()) return true; VcsRootChecker checker = myCheckers.get(mapping.getVcs()); if (checker == null) return true; VirtualFile directory = LocalFileSystem.getInstance().findFileByPath(mapping.getDirectory()); return directory != null && checker.validateRoot(directory); }