@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiReferenceExpression expression) {
    if (!PsiUtil.isAvailable(JavaFeature.PATTERNS_IN_SWITCH, expression) || !(expression.getParent() instanceof PsiCaseLabelElementList)) {
      return null;
    }
    PsiClass resolvedExprClass = getResolvedExprClass();
    if (resolvedExprClass == null) return Presentation.of(getFamilyName());
    return Presentation.of(CommonQuickFixBundle.message("fix.replace.with.x", resolvedExprClass.getName() + " " + myPatternVarName));
  }
@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiReferenceExpression expression)