Add generic type  "stmt" in node finding function