public List<String> getUntrackedFolders() {LinkedList<String> ret = new LinkedList<>(untrackedFolders);if (!untrackedParentFolders.isEmpty()) {String toBeAdded = untrackedParentFolders.getLast();while (!ret.isEmpty() && ret.getLast().startsWith(toBeAdded))ret.removeLast();ret.addLast(toBeAdded);}return ret;}

public virtual IList<string> GetUntrackedFolders(){List<string> ret = new List<string>(untrackedFolders);if (!untrackedParentFolders.IsEmpty()){string toBeAdded = untrackedParentFolders.GetLast();while (!ret.IsEmpty() && ret.GetLast().StartsWith(toBeAdded)){ret.RemoveLast();}ret.AddLast(toBeAdded);}return ret;}
