@Override
    public Method set(Type type) {
        this.type = requireNonNull(type);
        return this;
    }
Copy constructor.

@param prototype the prototype
common-parent/codegen/src/main/java/com/speedment/common/codegen/internal/model/MethodImpl.java