def METHOD_NAME(args):
    if args.ref_trees:
        for stree in args.ref_trees:
            yield stree
    elif args.ref_tree_list:
        for line in open(args.ref_tree_list):
            line = line.strip()
            if line:
                yield line