public static @NotNull @IntentionName String getIntentionText(@NotNull PsiExpression expression, boolean constantValue) {
    PsiElement parent = PsiUtil.skipParenthesizedExprUp(expression.getParent());
    if (constantValue && parent instanceof PsiSwitchLabelStatementBase switchLabel &&
        PsiTreeUtil.isAncestor(switchLabel.getGuardExpression(), expression, false)) {
      return CommonQuickFixBundle.message("fix.remove.guard");
    }
    if (parent instanceof PsiIfStatement) {
      return constantValue ?
             CommonQuickFixBundle.message("fix.unwrap.statement", PsiKeyword.IF) :
             CommonQuickFixBundle.message("fix.remove.statement", PsiKeyword.IF);
    }
    if (parent instanceof PsiSwitchLabelStatementBase && !constantValue) {
      return JavaAnalysisBundle.message("remove.switch.label");
    }
    if (!constantValue) {
      if (parent instanceof PsiWhileStatement) return CommonQuickFixBundle.message("fix.remove.statement", PsiKeyword.WHILE);
      if (parent instanceof PsiDoWhileStatement) return CommonQuickFixBundle.message("fix.unwrap.statement", "do-while");
      if (parent instanceof PsiForStatement) return CommonQuickFixBundle.message("fix.remove.statement", PsiKeyword.FOR);
    }
    return QuickFixBundle.message("simplify.boolean.expression.text", PsiExpressionTrimRenderer.render(expression), constantValue);
  }
public static @NotNull @IntentionName String getIntentionText(@NotNull PsiExpression expression, boolean constantValue)