public void stopIfRequired(){
  if (System.currentTimeMillis() > stopAt) {
    throw new IllegalStateException();
  }
}

public void stopIfRequired ( ) { if ( System . currentTimeMillis ( ) > stopAt ) { throw new IllegalStateException ( ) ; } }
check if it ' s time to stop processing . processing auto - complete shouldn ' t take more than a few milliseconds . if processing is stopped , this methods throws an illegalstateexception
