'Returns a PBXFileReference corresponding to path in the correct group
according to RootGroupForPath\'s heuristics.
If an existing PBXFileReference for path exists, it will be returned.
Otherwise, one will be created and returned.'

def AddOrGetFileInRootGroup(self, path):

    (group, hierarchical) = self.RootGroupForPath(path)
    return group.AddOrGetFileByPath(path, hierarchical)
