PyFunctionBuilder (String baseName) { String name = baseName; int uniqueIndex = 0; while (myParameters.contains(name)) { uniqueIndex++; name = baseName + uniqueIndex; } myParameters.add(name); return this; }