boolean (PsiExpression expression) { final Object value = ConstantExpressionUtil.computeCastTo(expression, PsiTypes.doubleType()); if (value instanceof Double) { final double constantValue = ((Double)value).doubleValue(); return constantValue == 0.0; } DfType dfType = CommonDataflow.getDfType(expression); Number val = dfType.getConstantOfType(Number.class); return val != null && val.doubleValue() == 0.0; }