private void addPatternAssertion(String message, boolean isMethod) {
    if (myDoAssert) {
      addThrow("java/lang/AssertionError", "(Ljava/lang/Object;)V", message);
    }
    else if (isMethod) {
      addThrow("java/lang/IllegalStateException", "(Ljava/lang/String;)V", message);
    }
    else {
      addThrow("java/lang/IllegalArgumentException", "(Ljava/lang/String;)V", message);
    }
    myInstrumenter.markInstrumented();
  }
private void addPatternAssertion(String message, boolean isMethod)