@Override
  public @NotNull String getText() {
    return switch (myFixType) {
      case MAKE_FINAL -> {
        Collection<PsiVariable> vars = getVariablesToFix();
        yield JavaBundle.message("intention.name.make.variable.final", myVariable.getName(), vars.size() == 1 ? 0 : 1);
      }
      case MAKE_ARRAY -> {
        Collection<PsiVariable> vars = getVariablesToFix();
        yield JavaBundle.message("intention.name.transform.variables.into.final.one.element.array", myVariable.getName(),
                                 vars.size() == 1 ? 0 : 1);
      }
      case COPY_TO_FINAL -> JavaBundle.message("intention.name.copy.to.final.temp.variable", myVariable.getName(),
                               !PsiUtil.isAvailable(JavaFeature.EFFECTIVELY_FINAL, myContext) ? 0 : 1);
      default -> "";
    };
  }
@Override
  public @NotNull String getText()