CompletionProgressIndicator (@NotNull CompletionPhase phase) { if (isPhase(phase, CompletionPhase.BgCalculation.class, CompletionPhase.ItemsCalculated.class, CompletionPhase.CommittingDocuments.class, CompletionPhase.Synchronous.class)) { return phase.indicator; } return null; }