void (@NotNull Project project) { List<ClientAppSession> sessions = ClientSessionsManager.getAppSessions(ClientKind.ALL); for (ClientAppSession session : sessions) { ClientCompletionService clientCompletionService = ClientCompletionService.tryGetInstance(session); if (clientCompletionService == null) continue; CompletionProgressIndicator indicator = clientCompletionService.getCurrentCompletionProgressIndicator(); if (indicator != null && indicator.getProject() == project) { indicator.closeAndFinish(true); clientCompletionService.setCompletionPhase(CompletionPhase.NoCompletion); } else if (indicator == null) { clientCompletionService.setCompletionPhase(CompletionPhase.NoCompletion); } } }