Rewriting Parser.isDeclaredRoot()