boolean (PsiExpression expression) { final Object value = ExpressionUtils.computeConstantExpression(expression); if (value instanceof Double aDouble) { final double v = aDouble.doubleValue(); return Double.isInfinite(v) || v == 0.0; } else if (value instanceof Float aFloat) { final float v = aFloat.floatValue(); return Float.isInfinite(v) || v == 0.0f; } else if (value instanceof Integer integer) { return integer.intValue() == 0; } else if (value instanceof Long aLong) { return aLong.longValue() == 0; } return false; }