private static void toggleBoldFont(@NotNull EditorEx editor) {
    PreviewTextModel textModel = editor.getUserData(TEXT_MODEL_KEY);
    if (textModel != null) {
      SelectionModel selectionModel = editor.getSelectionModel();
      textModel.toggleBoldFont(TextRange.create(selectionModel.getSelectionStart(), selectionModel.getSelectionEnd()));
      editor.reinitSettings();
    }
  }
private static void toggleBoldFont(@NotNull EditorEx editor)