@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiReferenceExpression ref) {
    return switch (myKeepSideEffects) {
      case YES -> {
        final PsiExpression qualifierExpression = ref.getQualifierExpression();
        List<PsiExpression> sideEffects = qualifierExpression == null ?
                                          List.of() : SideEffectChecker.extractSideEffectExpressions(qualifierExpression);
        yield Presentation.of(JavaBundle.message("intention.family.name.extract.possible.side.effects"))
          .withHighlighting(ContainerUtil.map2Array(sideEffects, TextRange.EMPTY_ARRAY, expression -> expression.getTextRange()));
      }
      case NO -> Presentation.of(JavaBundle.message("intention.family.name.delete.possible.side.effects"));
      case UNSURE -> Presentation.of(myText);
    };
  }
@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiReferenceExpression ref)