protected void insertBracesWithNewLine(Editor editor, int offset) {
    Document document = editor.getDocument();
    document.insertString(offset, "{\n");
    insertCloseBrace(editor, offset + 2);
  }
protected void insertBracesWithNewLine(Editor editor, int offset)