@Override
  protected void invoke(@NotNull ActionContext context, @NotNull PsiClass myClass, @NotNull ModPsiUpdater updater) {
    PsiElement lBrace = myClass.getLBrace();
    if (lBrace == null) return;

    final PsiElementFactory psiElementFactory = JavaPsiFacade.getElementFactory(context.project());
    final PsiField psiField = psiElementFactory.createField(myName, myType);

    final PsiModifierList modifierList = psiField.getModifierList();
    if (modifierList != null) {
      for (String modifier : myModifiers) {
        modifierList.setModifierProperty(modifier, true);
      }
    }
    if (myInitializerText != null) {
      PsiExpression psiInitializer = psiElementFactory.createExpressionFromText(myInitializerText, psiField);
      psiField.setInitializer(psiInitializer);
    }

    final List<PsiGenerationInfo<PsiField>> generationInfos = GenerateMembersUtil.insertMembersAtOffset(
      myClass.getContainingFile(), lBrace.getTextRange().getEndOffset(),
      List.of(new PsiGenerationInfo<>(psiField)));
    if (!generationInfos.isEmpty()) {
      PsiField psiMember = Objects.requireNonNull(generationInfos.iterator().next().getPsiMember());
      updater.moveCaretTo(psiMember.getTextRange().getEndOffset());
    }
  }
@Override
  protected void invoke(@NotNull ActionContext context, @NotNull PsiClass myClass, @NotNull ModPsiUpdater updater)