void (TaskRepository repository) { myRepositories.add(repository); getListModel().add(repository); addRepositoryEditor(repository); myRepositoriesList.setSelectedIndex(myRepositoriesList.getModel().getSize() - 1); }