   lineDiv.style.fontSize = @fontSize + 'px'
 
   @lineNumberWrapper.appendChild lineDiv
+
+getMostSevereAnnotationType = (arr) ->
+  for el, i in arr
+    if el.type is 'error'
+      return 'error'
+  return 'warning'
 
 Editor::findLineNumberAtCoordinate = (coord) ->
   treeView = @view.getViewNodeFor @tree

  # selectively apply classes
  @redrawGutter false

Editor::getBreakpoitns = (row) ->
  @aceEditor.session.getBreakpoints()

Editor::setAnnotations = (annotations) ->

  for el, i in annotations
    @annotations[el.row] ?= []
    @annotations[el.row].push el

  console.log 'Just set annotations. They are now', @annotations

  @redrawGutter false

