void (CompletionParameters parameters, JavaCompletionSession session, boolean quick, Consumer<? super LookupElement> result) { if (SmartCastProvider.shouldSuggestCast(parameters)) { session.flushBatchItems(); SmartCastProvider.addCastVariants(parameters, session.getMatcher(), element -> { registerClassFromTypeElement(element, session); result.consume(PrioritizedLookupElement.withPriority(element, 1)); }, quick); } }