This probably should not be a class method, because now Berksfiles may be parsed recursively.