public void addField(PsiParameter variable, String name, PsiType type, boolean setterRequired) {
    final String propertyName = myJavaCodeStyleManager.variableNameToPropertyName(name, VariableKind.PARAMETER);
    final ParameterSpec field =
      new ParameterSpec(variable, myJavaCodeStyleManager.propertyNameToVariableName(propertyName, VariableKind.FIELD),
                        type instanceof PsiEllipsisType ? ((PsiEllipsisType)type).toArrayType() : type, setterRequired);
    fields.add(field);
  }
public void addField(PsiParameter variable, String name, PsiType type, boolean setterRequired)