List<String> (List<?> objects) { final List<String> result = new ArrayList<>(objects.size()); for (Object o : objects) { final String s = o.toString(); if (!result.contains(s)) { result.add(s); } } return result; }