void (@NotNull Editor editor, @NotNull GroovySmartEnterProcessor processor, @NotNull PsiElement psiElement) { if (psiElement instanceof GrListOrMap) { final PsiElement brack = ((GrListOrMap)psiElement).getRBrack(); if (brack == null) { editor.getDocument().insertString(psiElement.getTextRange().getEndOffset(), "]"); } } }