@Override
  public void apply(@NotNull Editor editor, @NotNull GroovySmartEnterProcessor processor, @NotNull PsiElement element)
    throws IncorrectOperationException {
    if (element instanceof GrTypeDefinition && ((GrTypeDefinition)element).getBody() == null) {
      final Document doc = editor.getDocument();
      doc.insertString(element.getTextRange().getEndOffset(), "{\n}");
    }
  }
@Override
  public void apply(@NotNull Editor editor, @NotNull GroovySmartEnterProcessor processor, @NotNull PsiElement element)