void (PsiElement position, GroovyCompletionConsumer result) { PsiClass scope = PsiTreeUtil.getParentOfType(position, PsiClass.class); PsiModifierList modifierList = ModifierChooser.findModifierList(position); addKeywords(result, true, ModifierChooser.addMemberModifiers(modifierList, scope != null && scope.isInterface(), position)); if (GroovyConfigUtils.isAtLeastGroovy40(position)) { addKeywords(result, true, PsiKeyword.SEALED, PsiKeyword.NON_SEALED); } }