@Nullable
  PsiField getFieldRepresentation(@NotNull Project project,
                                  String @NotNull [] modifiers,
                                  @NonNls @NotNull String fieldName,
                                  @NotNull PsiElement context,
                                  boolean readOnly) {
    JVMElementFactory factory = JVMElementFactories.getFactory(myTargetClass.getLanguage(), project);
    if (factory == null) return null;

    PsiField field = factory.createField(fieldName, PsiTypes.intType());
    if (myTargetClass instanceof GroovyScriptClass) {
      field.getModifierList().addAnnotation(GroovyCommonClassNames.GROOVY_TRANSFORM_FIELD);
    }

    for (@GrModifier.ModifierConstant String modifier : modifiers) {
      PsiUtil.setModifierProperty(field, modifier, true);
    }

    if (!readOnly) {
      field = CreateFieldFromUsageHelper.insertField(myTargetClass, field, context);
    }
    JavaCodeStyleManager.getInstance(project).shortenClassReferences(field.getParent());
    return field;
  }
@Nullable
  PsiField getFieldRepresentation(@NotNull Project project,
                                  String @NotNull [] modifiers,
                                  @NonNls @NotNull String fieldName,
                                  @NotNull PsiElement context,
                                  boolean readOnly)