void (@NotNull FilePath filePath, @NotNull Status status, @NotNull FileStatus convertedStatus) { if (status.isSwitched() || (convertedStatus == FileStatus.SWITCHED)) { final VirtualFile virtualFile = filePath.getVirtualFile(); if (virtualFile == null) return; Url switchUrl = status.getUrl(); final VirtualFile vcsRoot = ProjectLevelVcsManager.getInstance(myVcs.getProject()).getVcsRootFor(virtualFile); if (vcsRoot != null) { // it will be null if we walked into an excluded directory String baseUrl = myBranchConfigurationManager.get(vcsRoot).getBaseName(switchUrl); myChangelistBuilder.processSwitchedFile(virtualFile, baseUrl == null ? switchUrl.toDecodedString() : baseUrl, true); } } }