protected void insertCloseBrace(@NotNull Editor editor, int offset) {
    Document document = editor.getDocument();
    document.insertString(offset, "}");
  }
protected void insertCloseBrace(@NotNull Editor editor, int offset)