void (GrReferenceElement referenceElement, PrefixMatcher matcher, CompletionParameters parameters, Consumer<LookupElement> consumer) { if (referenceElement instanceof GrCodeReferenceElementImpl) { CompleteCodeReferenceElement.complete((GrCodeReferenceElement)referenceElement, matcher, consumer); } else if (referenceElement instanceof GrReferenceExpressionImpl) { CompleteReferenceExpression.processVariants(matcher, consumer, (GrReferenceExpressionImpl)referenceElement, parameters); } }