code: public static void checkState(boolean b, String errorMessageTemplate, double p) {
          if (!b) {
              throw new IllegalStateException(format(errorMessageTemplate, p));
          }
      }
docs: Ensures the truth of an expression involving the state of the calling instance, but not
  involving any parameters to the calling method.
  
  <p>See {@link #checkState(boolean, String, Object...)} for details.