void addDelayedMiddleMatches() {
    ArrayList<CompletionResult> delayed;
    synchronized (delayedMiddleMatches) {
      if (delayedMiddleMatches.isEmpty()) {
        return;
      }
      delayed = new ArrayList<>(delayedMiddleMatches);
      delayedMiddleMatches.clear();
    }
    for (CompletionResult item : delayed) {
      ProgressManager.checkCanceled();
      addItemToLookup(item);
    }
  }
void addDelayedMiddleMatches()