List<GitRepository> (final @NotNull GitRepository currentRepository) { List<GitRepository> repositories = new ArrayList<>(myRemainingRepositories); repositories.remove(currentRepository); return repositories; }