@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiPrefixExpression expression) {
    PsiExpression operand = expression.getOperand();
    if (operand == null) return null;

    PsiElement parent = expression.getParent();
    String text = operand.getText() + " ";

    String rop;
    if (parent instanceof PsiInstanceOfExpression instanceOf) {
      if (instanceOf.getOperand() != expression) return null;
      text += PsiKeyword.INSTANCEOF + " ";
      final PsiTypeElement typeElement = instanceOf.getCheckType();
      rop = typeElement == null ? "" : typeElement.getText();
    }
    else if (parent instanceof PsiBinaryExpression binaryExpression) {
      if (binaryExpression.getLOperand() != expression) return null;
      if (!TypeConversionUtil.isBooleanType(binaryExpression.getType())) return null;
      text += binaryExpression.getOperationSign().getText() + " ";
      final PsiExpression rOperand = binaryExpression.getROperand();
      rop = rOperand == null ? "" : rOperand.getText();
    }
    else {
      return null;
    }

    text += rop;
    return Presentation.of(QuickFixBundle.message("negation.broader.scope.text", text));
  }
@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiPrefixExpression expression)