protected MarkFactory.ChainDrawMark createAndInsertNewMark(int pos) throws BadLocationException { MarkFactory.ChainDrawMark mark = createMark(); try { mark.insert(doc, pos); } catch (InvalidMarkException e) { Utilities.annotateLoggable(e); } return mark; }