@staticmethod
def read_generics(generics_file):
    """Read generic token set from given file"""
    gen_set = set()
    with open(generics_file) as gen_fd:
        for line in gen_fd:
            if line.startswith('#') or line == '\n':
                continue
            gen_set.add(line.strip())
    return gen_set
