@Override
	public StyledString getStyledText(Object element)
	{
		
		if ((element == null) || ((element instanceof String)) || 
				((element instanceof ShadowOutlineError))) {
			return new StyledString(String.valueOf(element));
		}
		else if( element instanceof ShadowCompilerInterface.Tree )
		{
			ShadowCompilerInterface.Tree tree = (Tree) element;
			return tree.toStyledString();			
		}
		else
			return new StyledString(element.toString());
		
	}