List<BranchInfo> (final String repo) { ArrayList<BranchInfo> infos = new ArrayList<>(); VcsTaskHandler[] handlers = VcsTaskHandler.getAllHandlers(myProject); for (VcsTaskHandler handler : handlers) { VcsTaskHandler.TaskInfo[] tasks = handler.getAllExistingTasks(); for (VcsTaskHandler.TaskInfo info : tasks) { infos.addAll(ContainerUtil.filter(BranchInfo.fromTaskInfo(info, false), info1 -> Objects.equals(info1.repository, repo))); } } return infos; }