void (@NotNull Project project, @NotNull File directory) { if (project.isDefault()) return; VirtualFile[] files = SvnVcs.getInstance(project).getSvnFileUrlMapping().getNotFilteredRoots(); for (VirtualFile file : files) { if (FileUtil.isAncestor(virtualToIoFile(file), directory, false)) { // todo: should be done like auto detection ProjectLevelVcsManagerEx.getInstanceEx(project).fireDirectoryMappingsChanged(); return; } } }