String () { if (existingName != null) return existingName; if (number == -1) return originalName; String result = originalName + " (" + (number + 1) + ")"; if (!hasDuplicatedGroup && !groupId.isEmpty()) { result += " (" + groupId + ")"; } return result; }