if(te instanceof VerbatimTE)
appendStyled(result, nullSafeString(((VerbatimTE) te).getText()));
else if(te instanceof VariableTE)
appendStyled(result, nullSafeString(((VariableTE) te).getVarName()), EXPR_STYLER);
else if(te instanceof ExpressionTE) {
ExpressionTE exprTe = (ExpressionTE) te;
Expression expr = exprTe.getExpression();
if(expr instanceof ParenthesisedExpression)
expr = ((ParenthesisedExpression) expr).getExpr();
Object label = doGetText(expr);
if(label == null)
label = "<expr>";