FilePath (@NotNull String path, final NotNullFunction<File, Boolean> detector) { if (myVcs.getProject().isDefault()) return null; Url absoluteUrl = parseUrl(myRepositoryRoot + path, false); final RootUrlInfo rootForUrl = myVcs.getSvnFileUrlMapping().getWcRootForUrl(absoluteUrl); FilePath result = null; if (rootForUrl != null) { String relativePath = getRelativeUrl(rootForUrl.getUrl(), absoluteUrl); File file = new File(rootForUrl.getPath(), relativePath); VirtualFile virtualFile = LocalFileSystem.getInstance().findFileByIoFile(file); result = virtualFile != null ? VcsUtil.getFilePath(virtualFile) : VcsUtil.getFilePath(file, detector.fun(file).booleanValue()); } return result; }