@Override
  public void prefixTruncated(@NotNull LookupEx lookup, int hideOffset) {
    if (hideOffset < lookup.getEditor().getCaretModel().getOffset()) {
      myProcess.scheduleRestart();
      return;
    }
    myProcess.prefixUpdated();
    lookup.hideLookup(false);
  }
@Override
  public void prefixTruncated(@NotNull LookupEx lookup, int hideOffset)