@TestOnly
 public static void cleanupForNextTest() {
   CompletionProgressIndicator currentCompletion =
       CompletionServiceImpl.getCompletionService().getCurrentCompletion();
   if (currentCompletion != null) {
     currentCompletion.finishCompletionProcess(true);
     CompletionServiceImpl.assertPhase(CompletionPhase.NoCompletion.getClass());
   } else {
     CompletionServiceImpl.setCompletionPhase(CompletionPhase.NoCompletion);
   }
   CompletionLookupArranger.cancelLastCompletionStatisticsUpdate();
 }