protected void doFix(@NotNull Project project,
                       @GrModifier.ModifierConstant String @NotNull [] modifiers,
                       @NotNull @NonNls String fieldName,
                       TypeConstraint @NotNull [] typeConstraints,
                       @NotNull PsiElement context) throws IncorrectOperationException {
    PsiField field = getFieldRepresentation(project, modifiers, fieldName, context, false);
    if (field == null) return;

    Editor newEditor = IntentionUtils.positionCursor(project, myTargetClass.getContainingFile(), field);

    Template template = CreateFieldFromUsageHelper.setupTemplate(field, typeConstraints, myTargetClass, newEditor, context, false);
    TemplateManager manager = TemplateManager.getInstance(project);
    manager.startTemplate(newEditor, template);
  }
protected void doFix(@NotNull Project project,
                       @GrModifier.ModifierConstant String @NotNull [] modifiers,
                       @NotNull @NonNls String fieldName,
                       TypeConstraint @NotNull [] typeConstraints,
                       @NotNull PsiElement context)