@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull GrParameter parameter) {
    if (!(parameter.getDeclarationScope() instanceof GrMethod grMethod) ||
        grMethod.getContainingClass() == null || checkAssignmentToFieldExists(parameter)) {
      return null;
    }
    return Presentation.of(JavaBundle.message("intention.create.field.from.parameter.text", parameter.getName()));
  }
@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull GrParameter parameter)