code: function(types) {
  			if (textUtil.compare(this._textAnnotationTypesVisible, types)) return;
  			this._textAnnotationTypesVisible = types;
  			if (!this._annotationStyler || !this._textView) { return; }
  			this._annotationStyler.setAnnotationTypeVisible(types);
  			this._textView.redrawLines(0, undefined);
  		}
docs: Sets which annotations types are shown in the text.  Annotations are visible by default.
  
  @param {Object} types a hash table mapping annotation type to visibility (i.e. AnnotationType.ANNOTATION_INFO -> true).
  @since 14.0