String text = token2.text().toString();
//for comletion of end macros (preparation)
if(token2.id() == LatteTokenId.MACRO && paired.containsKey(text)) {
Pair<LatteMacro, Integer> p = paired.get(text);
Pair newP;
Integer i;
if(!isEndMacro) {
// increment with open pair macro
i = (p.second == null ? 1 : p.second + 1);
newP = Pair.of(p.first, i);