clearing and re-initializing editsDirs to preserve Collection semantics
assigning finalEditsDirs to editsDirs would leak Set semantics in the
return value and cause unexpected results downstream. eg future addAll
calls. Perf is not an issue since these are small lists.