void (CompletionContributor contributor) { MapKeysCompletionProvider provider = new MapKeysCompletionProvider(); contributor.extend(CompletionType.BASIC, PlatformPatterns.psiElement().withParent(PlatformPatterns.psiElement(GrReferenceExpression.class)), provider); }