private static ListModel createListModel(Object...elements) {
    final DefaultListModel model = new DefaultListModel();
    for (Object element : elements) {
      model.addElement(element);
    }

    return model;
  }
private static ListModel createListModel(Object...elements)