public Reference withArguments(Arguments arguments) {
        return new Reference(name(), arguments, output, isIdentifier && arguments.isEmpty());
    }
If the arguments of this contains a single argument which is an identifier, it is returned.
Otherwise null is returned.
searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/Reference.java