List<String> () { final ListModel<String> model = myRepositoriesList.getModel(); final List<String> result = new ArrayList<>(model.getSize()); for (int i = 0; i < model.getSize(); i++) { result.add(model.getElementAt(i)); } return result; }