List<String> (@NotNull VcsLogData logData) { List<String> users = ContainerUtil.map(logData.getAllUsers(), user -> { String shortPresentation = VcsUserUtil.getShortPresentation(user); Couple<String> firstAndLastName = VcsUserUtil.getFirstAndLastName(shortPresentation); if (firstAndLastName == null) return shortPresentation; return VcsUserUtil.capitalizeName(firstAndLastName.first) + " " + VcsUserUtil.capitalizeName(firstAndLastName.second); }); TreeSet<String> sortedUniqueUsers = new TreeSet<>(users); return new ArrayList<>(sortedUniqueUsers); }