void () { if (SvnConfiguration.getInstance(project).isAutoUpdateAfterCommit()) { final VirtualFile[] roots = ProjectLevelVcsManager.getInstance(project).getRootsUnderVcs(SvnVcs.getInstance(project)); final List<FilePath> paths = new ArrayList<>(); for (VirtualFile root : roots) { boolean take = false; for (VirtualFile commitRoot : panel.getRoots()) { if (VfsUtilCore.isAncestor(root, commitRoot, false)) { take = true; break; } } if (take) { paths.add(VcsUtil.getFilePath(root)); } } if (paths.isEmpty()) return; ApplicationManager.getApplication().invokeLater( () -> AutoSvnUpdater .run(new AutoSvnUpdater(project, paths.toArray(new FilePath[0])), VcsBundle.message("action.name.update")), ModalityState.nonModal()); } }