static void DisposeTMModel(TMModel tmModel) { if (tmModel == null) { return; } tmModel.Dispose(); }
static void DisposeTMModel(TMModel tmModel, TextMateColoringTransformer transformer) { if (tmModel == null) { return; } if (transformer != null) { tmModel.RemoveModelTokensChangedListener(transformer); } tmModel.Dispose(); }