* Create a diff annotation element
* @param type The type of change it will be annotating
* @return The newly created element
*/
public Element createElement(DiffType type) {
SpanElement element = Document.get().createSpanElement();
element.setPropertyObject(DIFF_KEY, type);
NodeManager.setTransparentBackref(element, this);
// HACK(danilatos): Demo looms, no time for learning how to use resource bundle etc.
// or adding accessors to stylebase
switch (type) {