@Override
    public Parameter toParameter(Parameter parameter) {
      return parameter.withType(
          scope.declare(
              (Trees.TypeDeclaration) parameter.type(),
              parameter.name()));
    }
We prevent transformation here to manually do it after variable declaration is done.
generator-processor/src/org/immutables/generator/processor/TypeResolver.java