MyCheckResult (final VirtualFile baseDir, final ProjectLevelVcsManager vcsManager) { final List<VcsDirectoryMapping> mappings = vcsManager.getDirectoryMappings(); boolean notMapped = true; boolean svnMappedToBase = false; for (VcsDirectoryMapping mapping : mappings) { final String vcs = mapping.getVcs(); if (vcs.length() > 0) { notMapped = false; if (SvnVcs.VCS_NAME.equals(vcs)) { if (mapping.isDefaultMapping() || baseDir.getPath().equals(mapping.getDirectory())) { svnMappedToBase = true; break; } } } } return svnMappedToBase ? MyCheckResult.rootToSvn : (notMapped ? MyCheckResult.notMapped : MyCheckResult.disable); }