LocalQuickFix (Object... infos) { final PsiExpression expression = (PsiExpression)infos[0]; final Object value = ExpressionUtils.computeConstantExpression(expression); if (!(value instanceof Integer)) { return null; } final int roundingMode = ((Integer)value).intValue(); if (roundingMode < 0 || roundingMode > 7) { return null; } return new BigDecimalLegacyMethodFix(); }