void (@NotNull PsiIfStatement statement) { PsiExpression condition = PsiUtil.skipParenthesizedExprDown(statement.getCondition()); if (BoolUtils.isBooleanLiteral(condition)) { LocalQuickFix fix = createSimplifyBooleanExpressionFix(condition, condition.textMatches(PsiKeyword.TRUE)); holder.registerProblem(condition, JavaAnalysisBundle .message("dataflow.message.constant.no.ref", condition.textMatches(PsiKeyword.TRUE) ? 1 : 0), LocalQuickFix.notNullElements(fix)); } }