Set<String?> findWriteVarNames(List<Statement> stmts) { var finder = _VariableWriteFinder(); finder.visitAllStatements(stmts, null); return finder.varNames; }