}
private static Vector nameVector(String argumentName, StringVector names, int numElements) {
if(Strings.isNullOrEmpty(argumentName) && names == null) {
// both argument name and names() vector are absent
return new ConstantStringVector("", numElements);
} else if(Strings.isNullOrEmpty(argumentName)) {
// argument name is missing, but we have names() vector
return names;