@Override
    public Optional<String> transform(Generator gen, InvocationValue model) {
        final Type realType;
        if (model.getType() instanceof ParameterizedType) {
            realType = ((ParameterizedType) model.getType()).getRawType();
        } else {
            realType = model.getType();
        }

        return Optional.of(
            (model.getType() == null ? "" :
                gen.on(realType).orElseThrow(NoSuchElementException::new) + ".") +
            model.getValue() +
            (model.getValues().size() <= 3
                ? gen.onEach(model.getValues()).collect(joining(", ", "(", ")"))
                : ("(" + Formatting.nl() + Formatting.indent(gen.onEach(model.getValues())
                    .collect(joining("," + Formatting.nl()))) + Formatting.nl() + ")"
                )
            )
        );
    }
Transforms from an {@link InvocationValue} to java code.

@author Emil Forslund
@since  2.4.6
common-parent/codegen/src/main/java/com/speedment/common/codegen/internal/java/view/value/InvocationValueView.java