code: public boolean schedules(Object receiverRef) {
          if ( Thread.currentThread() != this ) {
              throw new RuntimeException("cannot call from foreign thread");
          }
          if ( receiverRef instanceof Actor ) {
              // FIXME: think about visibility of scheduler var
              return ((Actor) receiverRef).__currentDispatcher == this;
  //            for (int i = 0; i < actors.length; i++) {
  //                Actor actor = actors[i];
  //                if (actor == receiverRef)
  //                    return true;
  //            }
          }
          return false;
      }
docs: can be called from the dispacther thread itself only
  @param receiverRef
  @return