public static void checkArgument(@Nullable Boolean expression) {
    if (expression != null && !expression) {
      throw new IllegalArgumentException();
    }
  }
Ensures the truth of an expression involving one or more parameters to the calling method.

@param expression a boolean expression
@throws IllegalArgumentException if {@code expression} is false
fbcore/src/main/java/com/facebook/common/internal/Preconditions.java