void () { CompletionService completionService = ApplicationManager.getApplication().getServiceIfCreated(CompletionService.class); if (!(completionService instanceof CompletionServiceImpl)) { return; } CompletionProgressIndicator currentCompletion = CompletionServiceImpl.getCurrentCompletionProgressIndicator(); if (currentCompletion != null) { currentCompletion.finishCompletionProcess(true); CompletionServiceImpl.assertPhase(CompletionPhase.NoCompletion.getClass()); } else { CompletionServiceImpl.setCompletionPhase(CompletionPhase.NoCompletion); } StatisticsUpdate.cancelLastCompletionStatisticsUpdate(); }