ActionGroup (@NotNull Project project, @NotNull List<? extends GitRepository> repositories, @NotNull VcsRef ref, @NotNull GitRepository selectedRepository, boolean isLocal) { if (isLocal) { return new LocalBranchActions(project, repositories, ref.getName(), selectedRepository); } else { return new RemoteBranchActions(project, repositories, ref.getName(), selectedRepository); } }