private void checkIsDispatchThread() {
    myCounter++;
    if (myCounter > 127) {
      myCounter = 0;
      LOG.assertTrue(EventQueue.isDispatchThread());
    }
  }
private void checkIsDispatchThread()