void (CompletionInitializationContextImpl initContext, boolean hasModifiers, long startingTime, CompletionProgressIndicator indicator, OffsetsInFile hostCopyOffsets) { CompletionServiceImpl.setCompletionPhase(new CompletionPhase.Synchronous(indicator)); Future<?> future = startContributorThread(initContext, indicator, hostCopyOffsets, hasModifiers); if (future == null) { return; } int timeout = calcSyncTimeOut(startingTime); if (indicator.blockingWaitForFinish(timeout)) { checkForExceptions(future); try { indicator.getLookup().refreshUi(true, false); completionFinished(indicator, hasModifiers); } catch (Throwable e) { LOG.error(e); indicator.closeAndFinish(true); CompletionServiceImpl.setCompletionPhase(CompletionPhase.NoCompletion); } return; } CompletionServiceImpl.setCompletionPhase(new CompletionPhase.BgCalculation(indicator)); indicator.showLookup(); }