void (CompletionContributor contributor) { PsiElementPattern.Capture<PsiElement> pattern = PlatformPatterns.psiElement().withParent(PlatformPatterns.psiElement(GrReferenceExpression.class)); contributor.extend(CompletionType.BASIC, pattern, new GroovyConfigSlurperCompletionProvider(true)); contributor.extend(CompletionType.SMART, pattern, new GroovyConfigSlurperCompletionProvider(false)); }