@Nullable private static ZenCodingNode parse( @NotNull String text, @NotNull CustomTemplateCallback callback, ZenCodingGenerator generator) { List<ZenCodingToken> tokens = lex(text); if (tokens == null) { return null; } MyParser parser = new MyParser(tokens, callback, generator); ZenCodingNode node = parser.parse(); return parser.myIndex == tokens.size() ? node : null; }