LocalQuickFix (Object... infos) { final String replacement = (String)infos[1]; if (replacement.isEmpty() && infos[0] instanceof PsiAssignmentExpression) { return new RemovePointlessBooleanExpressionFix(); } boolean hasSideEffect = (boolean)infos[2]; return new PointlessBooleanExpressionFix(hasSideEffect); }