private static @Nullable Boolean computeBoolean(@NotNull PsiExpression expr) {
    final Object result = compute(expr);
    return result instanceof Boolean ? (Boolean)result : null;
  }
private static @Nullable Boolean computeBoolean(@NotNull PsiExpression expr)