@NotNull
    private @IntentionName String determineName(@Nullable PsiElement block) {
      if (block instanceof PsiClassInitializer) return JavaBundle.message("inspection.field.can.be.local.quickfix.initializer");
      if (block instanceof PsiMethod method) {
        if (method.isConstructor()) return JavaBundle.message("inspection.field.can.be.local.quickfix.constructor");
        return JavaBundle.message("inspection.field.can.be.local.quickfix.one.method", method.getName());
      }
      return getFamilyName();
    }
@NotNull
    private @IntentionName String determineName(@Nullable PsiElement block)