if ((pn = node.content[i]).tokenType != TokenType.SimpleTensor) throw new IllegalArgumentException("Error in trace indices list."); if ((type = IndexType.fromShortString(((ParseTokenSimpleTensor) pn).name)) == null) if ((type = IndexType.valueOf(((ParseTokenSimpleTensor) pn).name)) == null) throw new IllegalArgumentException("Error in trace indices list.");